3v4l.org

run code in 300+ PHP versions simultaneously
<?php class test { public function __construct() { $this->test = 'meow'; } } function error_handler() { $test = new test(); return true; } set_error_handler("error_handler"); // test one class a {} $a = new a; $a->undefined .= 'test'; echo isset($a->undefined) ? 'true' : 'false'; echo "\n"; // test two $b .= 'test'; echo isset($b) ? 'true' : 'false'; echo "\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.0070.00718.43
8.3.50.0070.01422.04
8.3.40.0040.01118.57
8.3.30.0120.00319.01
8.3.20.0040.00420.16
8.3.10.0040.00420.52
8.3.00.0060.00317.75
8.2.180.0070.01425.92
8.2.170.0040.01122.96
8.2.160.0070.00720.35
8.2.150.0060.00324.18
8.2.140.0030.00524.66
8.2.130.0040.00426.16
8.2.120.0040.00422.41
8.2.110.0030.00622.13
8.2.100.0080.00317.84
8.2.90.0000.00818.03
8.2.80.0040.00419.19
8.2.70.0040.00417.75
8.2.60.0040.00417.63
8.2.50.0000.00917.63
8.2.40.0060.00319.39
8.2.30.0050.00219.40
8.2.20.0000.00817.69
8.2.10.0030.00617.99
8.2.00.0000.00817.81
8.1.280.0070.01025.92
8.1.270.0000.00723.99
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0040.00723.84
8.1.230.0110.00022.63
8.1.220.0040.00417.79
8.1.210.0090.00018.77
8.1.200.0050.00317.35
8.1.190.0040.00417.52
8.1.180.0050.00318.10
8.1.170.0050.00218.94
8.1.160.0070.00021.95
8.1.150.0000.00718.79
8.1.140.0040.00417.38
8.1.130.0070.00017.80
8.1.120.0080.00017.31
8.1.110.0020.00517.32
8.1.100.0020.00517.45
8.1.90.0000.00717.42
8.1.80.0000.00717.42
8.1.70.0030.00317.34
8.1.60.0000.00717.60
8.1.50.0000.00917.45
8.1.40.0040.00417.55
8.1.30.0000.00817.61
8.1.20.0000.00717.68
8.1.10.0030.00617.46
8.1.00.0040.00417.54
8.0.300.0040.00420.09
8.0.290.0000.00716.88
8.0.280.0000.00718.41
8.0.270.0080.00017.26
8.0.260.0030.00317.25
8.0.250.0000.00717.07
8.0.240.0070.00016.92
8.0.230.0040.00416.97
8.0.220.0000.00716.90
8.0.210.0000.00716.96
8.0.200.0030.00316.89
8.0.190.0040.00416.95
8.0.180.0040.00416.96
8.0.170.0040.00416.84
8.0.160.0030.00516.93
8.0.150.0040.00416.84
8.0.140.0030.00516.86
8.0.130.0030.00313.32
8.0.120.0000.00816.81
8.0.110.0040.00416.89
8.0.100.0070.00316.78
8.0.90.0000.00716.96
8.0.80.0070.01316.94
8.0.70.0040.00416.84
8.0.60.0040.00416.89
8.0.50.0040.00416.84
8.0.30.0100.00916.96
8.0.20.0140.00517.44
8.0.10.0000.00716.87
8.0.00.0110.00916.89
7.4.330.0020.00215.00
7.4.320.0030.00316.57
7.4.300.0000.00616.51
7.4.290.0070.00016.41
7.4.280.0040.00416.49
7.4.270.0030.00316.52
7.4.260.0030.00616.57
7.4.250.0040.00416.45
7.4.240.0060.00216.52
7.4.230.0070.00016.30
7.4.220.0150.01216.53
7.4.210.0080.00716.48
7.4.200.0070.00016.40
7.4.160.0000.01616.65
7.4.150.0140.00417.40
7.4.140.0110.00917.86
7.4.130.0100.00616.60
7.4.120.0100.00716.59
7.4.110.0060.01216.36
7.4.100.0120.00616.51
7.4.90.0130.00316.45
7.4.80.0060.01619.39
7.4.70.0060.01816.53
7.4.60.0030.01516.70
7.4.50.0000.00516.34
7.4.40.0140.00316.59
7.4.30.0100.00716.68
7.4.00.0050.01115.05
7.3.330.0000.00713.32
7.3.320.0000.00513.14
7.3.310.0070.00016.31
7.3.300.0030.00316.38
7.3.290.0000.01516.41
7.3.280.0060.01016.32
7.3.270.0060.01117.40
7.3.260.0120.00616.56
7.3.250.0070.01216.26
7.3.240.0060.01116.32
7.3.230.0110.00716.55
7.3.210.0080.00816.57
7.3.200.0110.00619.39
7.3.190.0110.00616.37
7.3.180.0110.00416.40
7.3.170.0090.01216.34
7.3.160.0060.01516.43
7.3.120.0000.01914.85
7.3.110.0050.00914.60
7.3.100.0060.00614.67
7.3.90.0070.00714.65
7.3.80.0120.00314.79
7.3.70.0030.00914.76
7.3.60.0090.00614.84
7.3.50.0090.00014.82
7.3.40.0080.00414.86
7.3.30.0050.00514.54
7.3.20.0000.01416.79
7.3.10.0000.01416.56
7.3.00.0080.00316.70
7.2.330.0030.01316.70
7.2.320.0170.01116.77
7.2.310.0090.00916.63
7.2.300.0100.00616.40
7.2.290.0090.01216.68
7.2.250.0130.00615.21
7.2.240.0060.00915.17
7.2.230.0070.00715.08
7.2.220.0000.01415.27
7.2.210.0080.00614.92
7.2.200.0000.01414.93
7.2.190.0000.01214.98
7.2.180.0040.00815.12
7.2.170.0060.00615.05
7.2.60.0080.00416.76
7.2.00.0130.01918.91
7.1.330.0030.01215.72
7.1.320.0090.00615.59
7.1.310.0040.00415.90
7.1.300.0090.00315.83
7.1.290.0030.01015.64
7.1.280.0060.00615.82
7.1.270.0000.01215.72
7.1.260.0100.00315.80
7.1.200.0040.00715.82
7.1.100.0060.00617.93
7.1.70.0080.00817.23
7.1.60.0110.01419.61
7.1.50.0090.01517.03
7.1.00.0030.07722.48
7.0.200.0030.00716.82
7.0.140.0070.07022.00
7.0.110.0600.08019.99
7.0.100.0700.07019.89
7.0.90.0600.07720.07
7.0.80.0630.07019.90
7.0.70.0500.07719.95
7.0.60.0570.08019.90
7.0.50.0500.04720.33
7.0.40.0070.08020.06
7.0.30.0100.07020.04
7.0.20.0100.08320.05
7.0.10.0030.08720.14
7.0.00.0130.06020.14
5.6.280.0070.07021.16
5.6.260.0070.04320.72
5.6.250.0100.09320.62
5.6.240.0070.08020.70
5.6.230.0070.08020.56
5.6.220.0130.08020.68
5.6.210.0170.07020.62
5.6.200.0070.07721.28
5.6.190.0100.07721.06
5.6.180.0130.07021.00
5.6.170.0000.08721.14
5.6.160.0070.08020.94
5.6.150.0070.07721.15
5.6.140.0130.06720.93
5.6.130.0130.07720.93
5.6.120.0100.08321.00
5.6.110.0130.07720.96
5.6.100.0030.05021.16
5.6.90.0030.04321.20
5.6.80.0070.05720.40
5.6.70.0100.03320.50
5.6.60.0100.04320.67
5.6.50.0030.04020.51
5.6.40.0000.04020.45
5.6.30.0070.03720.65
5.6.20.0000.06320.48
5.6.10.0070.04320.41
5.6.00.0070.03720.54
5.5.380.0070.07020.35
5.5.370.0070.07720.33
5.5.360.0130.07320.52
5.5.350.0130.07320.48
5.5.340.0030.08320.85
5.5.330.0100.07721.00
5.5.320.0200.06320.94
5.5.310.0030.08720.97
5.5.300.0030.05320.89
5.5.290.0070.08720.96
5.5.280.0070.08720.96
5.5.270.0130.06720.72
5.5.260.0030.07020.94
5.5.250.0030.04320.80
5.5.240.0030.04020.41
5.5.230.0100.03020.33
5.5.220.0070.03720.29
5.5.210.0030.04020.25
5.5.200.0000.04320.34
5.5.190.0070.03720.30
5.5.180.0070.04020.25
5.5.160.0100.06720.34
5.5.150.0030.05320.20
5.5.140.0070.03320.09
5.5.130.0000.05320.19
5.5.120.0100.03720.25
5.5.110.0100.03320.05
5.5.100.0000.04320.09
5.5.90.0070.03319.99
5.5.80.0100.03020.02
5.5.70.0100.03320.14
5.5.60.0030.03720.25
5.5.50.0070.03320.21
5.5.40.0000.04020.14
5.5.30.0070.03720.09
5.5.20.0030.04020.20
5.5.10.0000.04720.19
5.5.00.0070.06320.23
5.4.450.0000.05319.66
5.4.440.0070.08319.55
5.4.430.0130.05719.50
5.4.420.0100.04019.35
5.4.410.0000.04319.20
5.4.400.0030.04019.18
5.4.390.0030.04319.18
5.4.380.0000.03719.02
5.4.370.0130.05019.24
5.4.360.0070.03319.03
5.4.350.0070.06719.18
5.4.340.0100.03019.04
5.4.320.0130.04319.14
5.4.310.0030.03719.16
5.4.300.0030.03719.01
5.4.290.0100.06319.31
5.4.280.0030.04319.16
5.4.270.0030.03719.08
5.4.260.0000.05319.18
5.4.250.0000.04019.08
5.4.240.0030.04019.13
5.4.230.0070.03719.30
5.4.220.0070.05018.94
5.4.210.0070.04019.19
5.4.200.0030.06319.02
5.4.190.0030.04018.98
5.4.180.0030.03719.30
5.4.170.0130.03719.32
5.4.160.0030.03719.29
5.4.150.0030.03719.12
5.4.140.0070.03316.40
5.4.130.0100.03016.59
5.4.120.0030.04016.48
5.4.110.0030.03716.63
5.4.100.0030.03316.56
5.4.90.0070.03016.31
5.4.80.0130.02716.50
5.4.70.0000.03716.61
5.4.60.0000.06316.45
5.4.50.0130.06316.33
5.4.40.0100.03016.57
5.4.30.0030.04016.48
5.4.20.0070.03316.23
5.4.10.0030.03716.25
5.4.00.0070.07015.82

preferences:
45.68 ms | 401 KiB | 5 Q