3v4l.org

run code in 300+ PHP versions simultaneously
<?php set_error_handler(function($errno, $errstr, $errfile, $errline){ echo $errstr."\n"; new MyOtherClass; }); spl_autoload_register(function($class){ echo $class."\n"; return eval("class $class{}"); }); new MyClass; eval(' class MyConcrete extends MyAbstract { public static function createInstance() {} } abstract class MyAbstract { public abstract static function createInstance(); } ');

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.0140.00416.75
8.3.50.0080.01417.58
8.3.40.0100.00318.71
8.3.30.0040.01118.67
8.3.20.0080.00018.81
8.3.10.0080.00018.64
8.3.00.0060.00319.13
8.2.180.0120.00316.38
8.2.170.0170.00022.96
8.2.160.0060.01018.59
8.2.150.0090.00024.18
8.2.140.0030.00524.66
8.2.130.0040.00426.16
8.2.120.0040.00419.66
8.2.110.0000.01121.05
8.2.100.0080.00317.80
8.2.90.0040.00419.03
8.2.80.0050.00317.97
8.2.70.0060.00317.38
8.2.60.0030.00617.93
8.2.50.0000.00818.10
8.2.40.0000.00918.02
8.2.30.0030.00717.68
8.2.20.0060.00517.56
8.2.10.0050.00217.56
8.2.00.0030.00517.69
8.1.280.0060.01225.92
8.1.270.0040.00423.99
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0080.00022.19
8.1.230.0040.00719.07
8.1.220.0080.00017.74
8.1.210.0090.00018.77
8.1.200.0000.00917.23
8.1.190.0090.00017.35
8.1.180.0000.00818.10
8.1.170.0000.00718.58
8.1.160.0020.00518.86
8.1.150.0040.00418.49
8.1.140.0040.00417.39
8.1.130.0070.00019.08
8.1.120.0050.00217.36
8.1.110.0040.00417.45
8.1.100.0050.00317.41
8.1.90.0040.00417.41
8.1.80.0030.00317.38
8.1.70.0040.00417.30
8.1.60.0080.00017.55
8.1.50.0040.00417.48
8.1.40.0040.00417.50
8.1.30.0100.00017.43
8.1.20.0080.00317.51
8.1.10.0050.00217.45
8.1.00.0040.00417.45
8.0.300.0050.00318.77
8.0.290.0070.00016.75
8.0.280.0000.00818.48
8.0.270.0000.00717.27
8.0.260.0000.00716.82
8.0.250.0000.00816.90
8.0.240.0000.00717.02
8.0.230.0040.00416.93
8.0.220.0000.00716.84
8.0.210.0040.00416.98
8.0.200.0030.00316.86
8.0.190.0050.00216.83
8.0.180.0070.00016.86
8.0.170.0000.00816.82
8.0.160.0000.01116.94
8.0.150.0050.00316.84
8.0.140.0030.00516.74
8.0.130.0030.00313.34
8.0.120.0030.00616.86
8.0.110.0050.00216.79
8.0.100.0040.00416.88
8.0.90.0040.00416.95
8.0.80.0080.00616.83
8.0.70.0050.00216.92
8.0.60.0040.00416.76
8.0.50.0030.00616.94
8.0.30.0170.00316.91
8.0.20.0060.01417.17
8.0.10.0000.00816.97
8.0.00.0130.00516.76
7.4.330.0000.00512.94
7.4.320.0000.00616.44
7.4.300.0000.00716.52
7.4.290.0040.00416.43
7.4.280.0030.00616.45
7.4.270.0060.00316.49
7.4.260.0030.00313.32
7.4.250.0040.00416.51
7.4.240.0080.00016.46
7.4.230.0000.00716.40
7.4.220.0130.01316.54
7.4.210.0070.00916.65
7.4.200.0030.00316.39
7.4.190.0050.00316.60
7.4.160.0080.00816.46
7.4.150.0030.01416.46
7.4.140.0180.00617.86
7.4.130.0100.00716.63
7.4.120.0090.00916.50
7.4.110.0130.01016.34
7.4.100.0090.01616.61
7.4.90.0130.01016.50
7.4.80.0100.00719.39
7.4.70.0060.00916.56
7.4.60.0060.01216.41
7.4.50.0030.00316.46
7.4.40.0060.00916.50
7.4.30.0100.00716.41
7.4.00.0050.01114.97
7.3.330.0030.00313.23
7.3.320.0050.00013.35
7.3.310.0030.00316.16
7.3.300.0030.00316.34
7.3.290.0060.00916.33
7.3.280.0040.01216.29
7.3.270.0080.00916.25
7.3.260.0110.00616.36
7.3.240.0030.01316.55
7.3.230.0100.00616.28
7.3.210.0070.01016.33
7.3.200.0060.01116.26
7.3.190.0100.00616.46
7.3.180.0100.00616.59
7.3.170.0170.00016.27
7.3.160.0100.00516.59
7.3.120.0070.01014.84
7.3.110.0060.01214.80
7.3.100.0060.01014.68
7.3.90.0030.01114.87
7.3.80.0070.00714.84
7.3.70.0060.00914.88
7.3.60.0070.00514.72
7.3.50.0090.00314.86
7.3.40.0090.00514.65
7.3.30.0030.01114.80
7.3.20.0060.00716.61
7.3.10.0070.00716.72
7.3.00.0040.01016.58
7.2.330.0120.00616.53
7.2.320.0130.01016.71
7.2.310.0120.00616.70
7.2.300.0140.00316.54
7.2.290.0100.01016.63
7.2.250.0060.01215.04
7.2.240.0040.01114.92
7.2.230.0080.00515.00
7.2.220.0080.00314.96
7.2.210.0080.00514.99
7.2.200.0040.01214.88
7.2.190.0060.00614.87
7.2.180.0080.00815.03
7.2.170.0090.00614.88
7.2.80.0030.01016.59
7.2.60.0000.01216.70
7.2.00.0070.00719.13
7.1.330.0070.00715.86
7.1.320.0070.00615.85
7.1.310.0060.00715.85
7.1.300.0070.00615.67
7.1.290.0060.00715.72
7.1.280.0030.00815.67
7.1.270.0070.00915.83
7.1.260.0040.01015.69
7.1.200.0040.00715.83
7.1.100.0030.00918.21
7.1.70.0030.00517.22
7.1.60.0060.01819.21
7.1.50.0120.00916.59
7.1.00.0000.06322.40
7.0.200.0030.00516.81
7.0.140.0070.07322.14
7.0.120.0000.05022.18
7.0.60.0130.07319.89
7.0.50.0070.07717.82
7.0.40.0000.05720.12
7.0.30.0300.08720.19
7.0.20.0230.05320.30
7.0.10.0200.04320.16
7.0.00.0030.04320.18
5.6.280.0030.08321.11
5.6.210.0100.08020.61
5.6.200.0070.08718.19
5.6.190.0070.07020.66
5.6.180.0230.04020.47
5.6.170.0330.07320.72
5.6.160.0070.08320.55
5.6.150.0070.08718.20
5.6.140.0070.05718.19
5.6.130.0030.05318.17
5.6.120.0130.07320.97
5.6.110.0130.07321.02
5.6.100.0070.08020.96
5.6.90.0070.05720.94
5.6.80.0000.05020.38
5.6.70.0270.08020.54
5.5.350.0030.05720.30
5.5.340.0030.08018.02
5.5.330.0000.06020.38
5.5.320.0100.04720.37
5.5.310.0230.05020.27
5.5.300.0130.04017.92
5.5.290.0100.07018.09
5.5.280.0100.04320.88
5.5.270.0070.08320.80
5.5.260.0170.07020.68
5.5.250.0000.04320.59
5.5.240.0030.07720.37
5.4.450.0070.08719.31
5.4.440.0030.04319.58
5.4.430.0030.07319.48
5.4.420.0000.08019.18
5.4.410.0030.06319.36
5.4.400.0030.07718.89
5.4.390.0030.06719.18
5.4.380.0030.07019.25
5.4.370.0070.06719.13
5.4.360.0070.06319.15
5.4.350.0030.04319.02
5.4.340.0130.06719.17
5.4.320.0030.05019.13
5.4.310.0130.07319.17
5.4.300.0000.06719.25
5.4.290.0100.05319.16
5.4.280.0100.08019.13
5.4.270.0000.04319.16
5.4.260.0200.05718.88
5.4.250.0000.04719.12
5.4.240.0030.04719.00
5.4.230.0030.03719.24
5.4.220.0000.04018.86
5.4.210.0030.03719.15
5.4.200.0000.04019.20
5.4.190.0070.04019.13
5.4.180.0030.03718.91
5.4.170.0070.04018.97
5.4.160.0100.03718.99
5.4.150.0030.03718.96
5.4.140.0000.03716.34
5.4.130.0000.03716.56
5.4.120.0070.03716.59
5.4.110.0030.03716.30
5.4.100.0000.03716.39
5.4.90.0000.03716.42
5.4.80.0030.03316.46
5.4.70.0130.03016.41
5.4.60.0070.03016.63
5.4.50.0000.03716.43
5.4.40.0030.03316.51
5.4.30.0000.03716.38
5.4.20.0030.03316.42
5.4.10.0070.03016.46
5.4.00.0100.02715.71
5.3.290.0100.04014.73
5.3.280.0030.04314.75
5.3.270.0030.03714.68
5.3.260.0030.03714.63
5.3.250.0030.03714.77
5.3.240.0070.03314.77
5.3.230.0070.03314.62
5.3.220.0030.04014.46
5.3.210.0000.04014.57
5.3.200.0000.03714.46
5.3.190.0030.03714.63
5.3.180.0070.03314.51
5.3.170.0070.03314.59
5.3.160.0030.04014.58
5.3.150.0030.03314.62
5.3.140.0030.03714.58
5.3.130.0030.04014.61
5.3.120.0000.04314.55
5.3.110.0070.03314.57
5.3.100.0000.04014.05
5.3.90.0000.04014.05
5.3.80.0100.03013.98
5.3.70.0030.03314.07
5.3.60.0030.03314.17
5.3.50.0000.03714.02
5.3.40.0030.03314.00
5.3.30.0070.05713.99
5.3.20.0000.08013.67
5.3.10.0030.07313.68
5.3.00.0100.07313.68
5.2.170.0000.03011.11
5.2.160.0000.03010.96
5.2.150.0030.02711.07
5.2.140.0070.04011.07
5.2.130.0070.03711.11
5.2.120.0070.04311.07
5.2.110.0000.05311.08
5.2.100.0000.05311.04
5.2.90.0000.04010.99
5.2.80.0100.03711.17
5.2.70.0000.04711.06
5.2.60.0100.06011.12
5.2.50.0130.06010.91
5.2.40.0000.06710.91
5.2.30.0000.05010.86
5.2.20.0070.05710.89
5.2.10.0130.05310.88
5.2.00.0100.05310.71
5.1.60.0100.0279.98
5.1.50.0070.0439.96
5.1.40.0030.0239.97
5.1.30.0000.03010.24
5.1.20.0000.03010.35
5.1.10.0070.03010.04
5.1.00.0030.03010.13
5.0.50.0030.0278.56
5.0.40.0100.0338.39
5.0.30.0030.0538.22
5.0.20.0000.0508.25
5.0.10.0000.0278.11
5.0.00.0070.0508.13
4.4.90.0070.0338.01
4.4.80.0000.0408.01
4.4.70.0000.0408.01
4.4.60.0000.0278.01
4.4.50.0000.0378.01
4.4.40.0000.0308.01
4.4.30.0000.0178.01
4.4.20.0030.0138.01
4.4.10.0030.0138.01
4.4.00.0100.0478.01
4.3.110.0030.0278.01
4.3.100.0030.0278.01
4.3.90.0070.0208.01
4.3.80.0000.0578.01
4.3.70.0070.0338.01
4.3.60.0030.0378.01
4.3.50.0000.0378.01
4.3.40.0000.0508.01
4.3.30.0030.0338.01
4.3.20.0030.0338.01
4.3.10.0030.0238.01
4.3.00.0000.0338.01

preferences:
44.96 ms | 400 KiB | 5 Q