3v4l.org

run code in 300+ PHP versions simultaneously
<?php class test { public function __construct() { $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.0100.01018.56
8.3.50.0100.01121.89
8.3.40.0110.00318.79
8.3.30.0030.01219.01
8.3.20.0050.00320.30
8.3.10.0050.00320.51
8.3.00.0070.00317.38
8.2.180.0070.00716.63
8.2.170.0130.00322.96
8.2.160.0070.00720.39
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0080.00026.16
8.2.120.0060.00319.81
8.2.110.0120.00620.22
8.2.100.0040.00719.11
8.2.90.0060.00317.75
8.2.80.0000.00817.97
8.2.70.0050.00317.68
8.2.60.0000.00918.16
8.2.50.0000.00719.38
8.2.40.0050.00321.13
8.2.30.0000.00720.44
8.2.20.0040.00417.69
8.2.10.0000.00817.98
8.2.00.0000.00817.66
8.1.280.0210.00025.92
8.1.270.0090.00024.02
8.1.260.0060.00326.35
8.1.250.0040.00428.09
8.1.240.0040.00420.84
8.1.230.0110.00418.89
8.1.220.0000.00817.74
8.1.210.0030.00518.77
8.1.200.0030.00617.36
8.1.190.0040.00417.23
8.1.180.0060.00318.10
8.1.170.0080.00018.53
8.1.160.0070.00018.88
8.1.150.0050.00318.89
8.1.140.0020.00520.27
8.1.130.0000.00717.82
8.1.120.0040.00417.30
8.1.110.0070.00017.35
8.1.100.0000.00717.43
8.1.90.0000.00717.35
8.1.80.0040.00417.27
8.1.70.0030.00317.34
8.1.60.0040.00417.41
8.1.50.0000.00717.55
8.1.40.0000.00817.40
8.1.30.0000.00917.69
8.1.20.0000.00717.55
8.1.10.0030.00617.56
8.1.00.0040.00417.46
8.0.300.0030.00319.83
8.0.290.0040.00416.75
8.0.280.0000.00718.51
8.0.270.0000.00717.17
8.0.260.0030.00317.27
8.0.250.0030.00317.07
8.0.240.0000.00717.05
8.0.230.0030.00317.02
8.0.220.0070.00016.95
8.0.210.0030.00316.87
8.0.200.0000.00617.03
8.0.190.0000.00816.97
8.0.180.0030.00516.89
8.0.170.0000.00716.77
8.0.160.0050.00316.99
8.0.150.0000.00716.82
8.0.140.0000.00816.80
8.0.130.0060.00013.37
8.0.120.0040.00416.87
8.0.110.0030.00316.93
8.0.100.0000.00716.92
8.0.90.0030.00516.86
8.0.80.0090.00616.84
8.0.70.0000.00716.93
8.0.60.0040.00416.86
8.0.50.0000.00716.85
8.0.30.0080.01117.04
8.0.20.0110.00817.40
8.0.10.0000.00716.91
8.0.00.0100.00916.58
7.4.330.0000.00515.00
7.4.320.0000.00616.47
7.4.300.0060.00016.55
7.4.290.0030.00316.52
7.4.280.0080.00016.50
7.4.270.0000.00616.66
7.4.260.0030.00616.58
7.4.250.0040.00416.55
7.4.240.0030.00316.41
7.4.230.0000.00716.35
7.4.220.0130.00516.64
7.4.210.0030.01016.55
7.4.200.0050.00316.59
7.4.160.0030.01316.40
7.4.150.0030.01517.40
7.4.140.0080.00917.86
7.4.130.0110.00516.63
7.4.120.0050.01316.49
7.4.110.0130.01016.53
7.4.100.0070.01016.46
7.4.90.0100.00716.55
7.4.80.0100.01019.39
7.4.70.0100.00716.54
7.4.60.0210.00016.41
7.4.50.0050.00316.43
7.4.40.0100.00716.24
7.4.30.0150.00816.63
7.4.00.0030.01214.63
7.3.330.0030.00313.29
7.3.320.0030.00313.16
7.3.310.0070.00016.33
7.3.300.0060.00016.29
7.3.290.0080.00816.26
7.3.280.0050.01216.28
7.3.270.0070.01417.40
7.3.260.0140.00316.39
7.3.250.0050.01216.26
7.3.240.0100.01316.30
7.3.230.0100.01316.39
7.3.210.0160.00016.36
7.3.200.0150.00619.39
7.3.190.0060.01316.48
7.3.180.0200.00016.34
7.3.170.0130.01016.39
7.3.160.0060.01016.51
7.2.330.0140.00316.45
7.2.320.0070.01416.40
7.2.310.0150.00316.66
7.2.300.0060.01616.59
7.2.290.0150.00316.44
7.2.60.0110.00416.93
7.2.50.0120.00616.78
7.1.200.0050.00515.59
7.1.70.0000.00816.80
7.1.60.0070.01719.61
7.1.50.0070.01416.94
7.1.00.0070.07322.45
7.0.200.0000.01516.82
7.0.140.0000.07721.95
7.0.60.0130.07019.94
7.0.50.0070.08017.86
7.0.40.0100.07720.09
7.0.30.0500.05020.06
7.0.20.0370.06320.18
7.0.10.0030.04320.05
7.0.00.0070.04020.35
5.6.280.0070.07021.05
5.6.210.0070.03720.71
5.6.200.0070.08318.19
5.6.190.0000.05720.69
5.6.180.0130.08720.77
5.6.170.0370.04320.52
5.6.160.0100.08720.44
5.6.150.0130.03018.16
5.6.140.0030.04718.20
5.6.130.0070.07718.18
5.6.120.0130.07720.96
5.6.110.0170.07021.02
5.6.100.0200.07321.03
5.6.90.0130.07321.13
5.6.80.0170.06720.44
5.5.350.0070.08720.35
5.5.340.0030.05317.99
5.5.330.0070.08320.44
5.5.320.0330.06020.24
5.5.310.0370.07320.28
5.5.300.0000.04317.95
5.5.290.0070.08317.92
5.5.280.0030.04720.88
5.5.270.0030.04320.98
5.5.260.0100.08020.85
5.5.250.0030.07720.65
5.5.240.0200.07720.16
5.4.450.0070.08019.26
5.4.440.0070.04019.41
5.4.430.0130.07319.32
5.4.420.0100.08019.56
5.4.410.0030.08019.34
5.4.400.0100.07019.00
5.4.390.0030.04019.16
5.4.380.0030.04019.24
5.4.370.0070.06318.86
5.4.360.0030.07719.24
5.4.350.0030.07019.00
5.4.340.0070.04318.85
5.4.320.0070.08019.14
5.4.310.0030.07719.10
5.4.300.0130.07719.24
5.4.290.0070.07718.84
5.4.280.0070.05319.00
5.4.270.0030.08319.14
5.4.260.0030.04719.11
5.4.250.0030.06019.23
5.4.240.0030.05019.13
5.4.230.0100.07719.19
5.4.220.0070.03719.07
5.4.210.0200.06718.97
5.4.200.0000.04318.84
5.4.190.0100.05319.10
5.4.180.0070.08019.07
5.4.170.0030.04019.13
5.4.160.0070.03718.90
5.4.150.0130.06718.83
5.4.140.0200.06016.39
5.4.130.0030.07316.44
5.4.120.0100.05716.55
5.4.110.0100.07016.58
5.4.100.0000.06016.32
5.4.90.0100.06716.55
5.4.80.0070.04316.44
5.4.70.0070.04016.53
5.4.60.0100.06016.25
5.4.50.0100.05716.48
5.4.40.0070.06016.40
5.4.30.0100.06716.41
5.4.20.0000.07716.42
5.4.10.0130.07016.43
5.4.00.0100.07315.94
5.3.290.0070.06014.74
5.3.280.0070.03314.61
5.3.270.0130.03314.63
5.3.260.0070.03714.62
5.3.250.0070.08014.62
5.3.240.0070.06714.62
5.3.230.0030.05714.52
5.3.220.0030.07714.58
5.3.210.0030.07714.57
5.3.200.0070.07714.72
5.3.190.0030.07014.72
5.3.180.0130.05714.62
5.3.170.0070.07314.57
5.3.160.0100.07714.59
5.3.150.0070.07714.63
5.3.140.0070.07714.60
5.3.130.0030.08314.45
5.3.120.0070.08014.61
5.3.110.0100.07714.61
5.3.100.0130.04314.05
5.3.90.0070.07014.05
5.3.80.0000.07014.18
5.3.70.0030.07714.04
5.3.60.0030.04714.05
5.3.50.0000.08013.96
5.3.40.0170.06713.98
5.3.30.0070.04313.97
5.3.20.0070.04313.59
5.3.10.0030.03713.71
5.3.00.0130.06013.64
5.2.170.0070.06311.21
5.2.160.0030.04011.08
5.2.150.0000.05711.21
5.2.140.0070.05011.21
5.2.130.0100.06011.27
5.2.120.0030.02711.15
5.2.110.0030.06310.99
5.2.100.0100.05711.20
5.2.90.0030.06311.13
5.2.80.0100.05711.08
5.2.70.0030.06311.02
5.2.60.0030.04711.13
5.2.50.0100.05011.02
5.2.40.0030.06311.04
5.2.30.0030.05710.92
5.2.20.0000.05010.94
5.2.10.0070.06010.91
5.2.00.0070.04010.88
5.1.60.0000.0279.97
5.1.50.0030.0279.99
5.1.40.0100.01710.04
5.1.30.0070.02010.48
5.1.20.0000.02710.36
5.1.10.0030.02310.22
5.1.00.0000.02710.03
5.0.50.0000.0208.59
5.0.40.0070.0138.40
5.0.30.0000.0308.30
5.0.20.0000.0208.18
5.0.10.0030.0208.15
5.0.00.0030.0438.13
4.4.90.0070.0337.52
4.4.80.0000.0237.52
4.4.70.0000.0377.52
4.4.60.0100.0307.52
4.4.50.0000.0337.52
4.4.40.0030.0237.52
4.4.30.0000.0177.52
4.4.20.0030.0137.52
4.4.10.0030.0207.52
4.4.00.0000.0237.52
4.3.110.0000.0137.52
4.3.100.0000.0137.52
4.3.90.0000.0237.52
4.3.80.0000.0277.52
4.3.70.0030.0137.52
4.3.60.0000.0137.52
4.3.50.0000.0407.52
4.3.40.0030.0377.52
4.3.30.0000.0237.52
4.3.20.0030.0377.52
4.3.10.0000.0207.52
4.3.00.0000.0137.52

preferences:
58.69 ms | 401 KiB | 5 Q