3v4l.org

run code in 300+ PHP versions simultaneously
<?php class a { public $a; function __construct($a = 0) { $this->this = &$this; $this->a = $a; if ($a !== 0) { $this->this = new a(); } echo __METHOD__." :: ".$this->a."\n"; } } $a = new a(10); echo "a = ".$a->a."\n";

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
8.3.60.0170.00018.55
8.3.50.0070.01121.86
8.3.40.0120.00318.97
8.3.30.0070.00719.22
8.3.20.0050.00320.20
8.3.10.0040.00421.84
8.3.00.0090.00022.33
8.2.180.0090.01216.75
8.2.170.0120.00622.96
8.2.160.0110.00720.70
8.2.150.0030.00524.18
8.2.140.0080.00024.66
8.2.130.0080.00026.16
8.2.120.0000.00817.63
8.2.110.0080.00422.08
8.2.100.0090.00317.72
8.2.90.0080.00019.20
8.2.80.0050.00318.03
8.2.70.0090.00017.63
8.2.60.0040.00417.80
8.2.50.0060.00318.07
8.2.40.0040.00418.34
8.2.30.0030.00617.97
8.2.20.0040.00417.59
8.2.10.0000.00819.42
8.2.00.0040.00417.71
8.1.280.0100.00325.92
8.1.270.0110.00022.13
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0040.00423.92
8.1.230.0040.00819.05
8.1.220.0060.00317.74
8.1.210.0000.00918.77
8.1.200.0030.00617.35
8.1.190.0060.00317.40
8.1.180.0080.00018.10
8.1.170.0000.00818.64
8.1.160.0030.00622.06
8.1.150.0000.00818.66
8.1.140.0000.00717.51
8.1.130.0070.00017.75
8.1.120.0000.00717.37
8.1.110.0050.00217.38
8.1.100.0000.00717.54
8.1.90.0030.00517.52
8.1.80.0030.00317.32
8.1.70.0000.00717.49
8.1.60.0060.00317.62
8.1.50.0000.00717.45
8.1.40.0050.00217.41
8.1.30.0060.00317.71
8.1.20.0000.00817.57
8.1.10.0000.00717.59
8.1.00.0020.00517.39
8.0.300.0000.00718.77
8.0.290.0000.00717.05
8.0.280.0000.00818.42
8.0.270.0070.00017.20
8.0.260.0000.00716.75
8.0.250.0040.00316.94
8.0.240.0050.00316.91
8.0.230.0030.00316.96
8.0.220.0030.00316.79
8.0.210.0040.00416.88
8.0.200.0000.00816.93
8.0.190.0060.00316.85
8.0.180.0080.00016.86
8.0.170.0000.00916.96
8.0.160.0050.00316.93
8.0.150.0040.00416.81
8.0.140.0030.00316.80
8.0.130.0000.00613.32
8.0.120.0080.00016.91
8.0.110.0040.00416.80
8.0.100.0070.00016.80
8.0.90.0040.00417.02
8.0.80.0000.01516.94
8.0.70.0000.00816.97
8.0.60.0070.00016.96
8.0.50.0050.00216.71
8.0.30.0150.00517.00
8.0.20.0060.01217.40
8.0.10.0000.00816.96
8.0.00.0090.01516.80
7.4.330.0030.00315.02
7.4.320.0060.00016.53
7.4.300.0060.00016.61
7.4.290.0000.00716.60
7.4.280.0080.00016.69
7.4.270.0030.00316.67
7.4.260.0000.01016.48
7.4.250.0000.00716.56
7.4.240.0050.00216.59
7.4.230.0030.00316.52
7.4.220.0120.01016.50
7.4.210.0050.01116.52
7.4.200.0040.00416.63
7.4.190.0000.00716.68
7.4.160.0070.01316.41
7.4.150.0100.01017.40
7.4.140.0090.01117.86
7.4.130.0110.00616.57
7.4.120.0140.00616.56
7.4.110.0090.00916.43
7.4.100.0110.00616.51
7.4.90.0040.01316.38
7.4.80.0130.00319.39
7.4.70.0060.00916.45
7.4.60.0070.01416.66
7.4.50.0030.00616.56
7.4.40.0060.00922.77
7.4.30.0090.00616.36
7.4.00.0030.00614.63
7.3.330.0030.00313.33
7.3.320.0050.00013.21
7.3.310.0070.00016.47
7.3.300.0040.00416.40
7.3.290.0080.00616.38
7.3.280.0110.00516.36
7.3.270.0090.01317.40
7.3.260.0110.00816.60
7.3.250.0120.00816.55
7.3.240.0030.01316.42
7.3.230.0090.00916.63
7.3.210.0120.00416.66
7.3.200.0100.00619.39
7.3.190.0130.00316.36
7.3.180.0070.00716.48
7.3.170.0160.00016.49
7.3.160.0060.00916.35
7.3.120.0060.00914.55
7.3.10.0070.00716.39
7.3.00.0080.00816.64
7.2.330.0110.00716.77
7.2.320.0150.00616.49
7.2.310.0070.01016.50
7.2.300.0030.01916.72
7.2.290.0100.00716.82
7.2.130.0030.00916.90
7.2.120.0090.00317.05
7.2.110.0080.00416.79
7.2.100.0040.00817.01
7.2.90.0090.00916.70
7.2.80.0000.01416.81
7.2.70.0080.00416.90
7.2.60.0000.01517.05
7.2.50.0030.01216.93
7.2.40.0120.00016.89
7.2.30.0000.01416.73
7.2.20.0000.01516.95
7.2.10.0090.00617.17
7.2.00.0090.00617.01
7.1.250.0080.00315.82
7.1.200.0060.00615.88
7.1.70.0000.00817.04
7.1.60.0040.01819.82
7.1.50.0120.00916.79
7.1.00.0000.07722.31
7.0.200.0060.00616.66
7.0.140.0070.07022.15
7.0.60.0170.06320.01
7.0.50.0030.05717.86
7.0.40.0100.07320.04
7.0.30.0170.04320.20
7.0.20.0230.07320.08
7.0.10.0000.04720.06
7.0.00.0070.08320.44
5.6.280.0030.07321.13
5.6.210.0100.07020.67
5.6.200.0270.05718.23
5.6.190.0100.04020.61
5.6.180.0330.05020.61
5.6.170.0300.04320.56
5.6.160.0100.06320.57
5.6.150.0070.08018.16
5.6.140.0030.04018.14
5.6.130.0100.05318.14
5.6.120.0030.06020.89
5.6.110.0100.04721.03
5.6.100.0030.08020.89
5.6.90.0070.07721.08
5.6.80.0030.06020.50
5.5.350.0270.07020.33
5.5.340.0070.03318.03
5.5.330.0170.07720.28
5.5.320.0370.07020.32
5.5.310.0270.06320.37
5.5.300.0000.06017.99
5.5.290.0130.05018.04
5.5.280.0070.08020.88
5.5.270.0070.07320.75
5.5.260.0200.02320.73
5.5.250.0070.04020.70
5.5.240.0170.07020.37
5.4.450.0270.07719.22
5.4.440.0170.07319.43
5.4.430.0300.06719.57
5.4.420.0230.07319.27
5.4.410.0270.07019.19
5.4.400.0100.05018.87
5.4.390.0130.04318.99
5.4.380.0170.04319.08
5.4.370.0270.05019.10
5.4.360.0230.03318.85
5.4.350.0170.03719.22
5.4.340.0170.06319.16
5.4.320.0270.03019.15
5.4.310.0300.06319.23
5.4.300.0300.06719.22
5.4.290.0270.07019.22
5.4.280.0200.04718.87
5.4.270.0370.06018.95
5.4.260.0300.06319.06
5.4.250.0330.04719.23
5.4.240.0100.06019.14
5.4.230.0270.05319.08
5.4.220.0270.07019.15
5.4.210.0200.07319.21
5.4.200.0230.05719.05
5.4.190.0200.05019.26
5.4.180.0270.03319.30
5.4.170.0300.04019.21
5.4.160.0200.07319.06
5.4.150.0300.06718.92
5.4.140.0230.03716.29
5.4.130.0270.07016.46
5.4.120.0130.04316.45
5.4.110.0170.04316.59
5.4.100.0230.07016.56
5.4.90.0200.05716.26
5.4.80.0200.04716.55
5.4.70.0170.07716.26
5.4.60.0070.05716.54
5.4.50.0230.04316.48
5.4.40.0330.03316.43
5.4.30.0270.04016.24
5.4.20.0170.03716.32
5.4.10.0230.04316.41
5.4.00.0230.06715.80
5.3.290.0230.05014.59
5.3.280.0170.05014.75
5.3.270.0270.04314.61
5.3.260.0230.07314.60
5.3.250.0170.06714.51
5.3.240.0200.06314.60
5.3.230.0270.06314.59
5.3.220.0200.03314.67
5.3.210.0270.04014.61
5.3.200.0170.05014.64
5.3.190.0300.06714.56
5.3.180.0170.05014.48
5.3.170.0370.03314.56
5.3.160.0300.03714.56
5.3.150.0300.04014.53
5.3.140.0330.03714.64
5.3.130.0270.04314.70
5.3.120.0170.07714.55
5.3.110.0170.03714.66
5.3.100.0200.06014.12
5.3.90.0170.08014.09
5.3.80.0230.06014.10
5.3.70.0200.04314.00
5.3.60.0200.05313.93
5.3.50.0170.07314.07
5.3.40.0230.07014.05
5.3.30.0270.05714.13
5.3.20.0300.06313.62
5.3.10.0230.06313.88
5.3.00.0170.08013.64
5.2.170.0130.06712.21
5.2.160.0200.06012.21
5.2.150.0130.06312.21
5.2.140.0200.05012.21
5.2.130.0130.06312.21
5.2.120.0270.03312.21
5.2.110.0130.04712.21
5.2.100.0200.04312.21
5.2.90.0170.04312.21
5.2.80.0200.03712.21
5.2.70.0200.06312.21
5.2.60.0170.04712.21
5.2.50.0130.04012.21
5.2.40.0200.04712.21
5.2.30.0200.03712.21
5.2.20.0170.05712.21
5.2.10.0230.04012.21
5.2.00.0130.04312.21
5.1.60.0130.04312.21
5.1.50.0130.04312.21
5.1.40.0230.04312.21
5.1.30.0200.05012.21
5.1.20.0200.04712.21
5.1.10.0130.04712.21
5.1.00.0170.05012.21
5.0.50.0070.02712.21
5.0.40.0100.04312.21
5.0.30.0100.06012.21
5.0.20.0130.02012.21
5.0.10.0130.02312.21
5.0.00.0030.05712.21
4.4.90.0130.02312.21
4.4.80.0100.03312.21
4.4.70.0100.03712.21
4.4.60.0070.03712.21
4.4.50.0070.03312.21
4.4.40.0100.04712.21
4.4.30.0100.02712.21
4.4.20.0100.03012.21
4.4.10.0100.02312.21
4.4.00.0070.05312.21
4.3.110.0130.02712.21
4.3.100.0070.03012.21
4.3.90.0100.03312.21
4.3.80.0030.04312.21
4.3.70.0170.02712.21
4.3.60.0100.02712.21
4.3.50.0070.03312.21
4.3.40.0070.04712.21
4.3.30.0070.03312.21
4.3.20.0030.04012.21
4.3.10.0070.03012.21
4.3.00.0030.02312.21

preferences:
45.82 ms | 401 KiB | 5 Q