3v4l.org

run code in 300+ PHP versions simultaneously
<?php spl_autoload_register(function($class) { throw new Exception("Could not load $class"); }); spl_autoload_register(function($class) { if ($class == "Widget") { eval('class Widget { }'); } }); spl_autoload_register(function($class) { throw new Exception("Still could not load $class"); }); try { new Foo(); } catch (Exception $e) { for ($i = 1; $e; $e = $e->getPrevious()) printf("#%d Foo: %s\n", $i++, $e->getMessage()); } finally { var_dump(class_exists("Foo", false)); } try { new Widget(); } catch (Exception $e) { for ($i = 1; $e; $e = $e->getPrevious()) printf("#%d Foo: %s\n", $i++, $e->getMessage()); } finally { var_dump(class_exists("Widget", false)); }

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.0060.00916.75
8.3.50.0070.01018.11
8.3.40.0150.00018.98
8.3.30.0070.00718.71
8.3.20.0080.00020.34
8.3.10.0040.00423.65
8.3.00.0050.00321.74
8.2.180.0090.00618.13
8.2.170.0040.01122.96
8.2.160.0000.01419.29
8.2.150.0080.00024.18
8.2.140.0060.00324.66
8.2.130.0040.00422.30
8.2.120.0000.00926.35
8.2.110.0030.00622.15
8.2.100.0120.00017.88
8.2.90.0030.00617.88
8.2.80.0050.00317.97
8.2.70.0000.00817.50
8.2.60.0110.00017.80
8.2.50.0000.00818.07
8.2.40.0000.00818.22
8.2.30.0000.00717.99
8.2.20.0030.00617.99
8.2.10.0040.00418.14
8.2.00.0000.00718.22
8.1.280.0070.00725.92
8.1.270.0080.00023.83
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0060.00323.97
8.1.230.0090.00319.16
8.1.220.0060.00317.79
8.1.210.0050.00318.77
8.1.200.0000.00817.48
8.1.190.0060.00617.25
8.1.180.0030.00618.10
8.1.170.0000.00818.58
8.1.160.0000.00718.91
8.1.150.0050.00220.12
8.1.140.0000.00819.53
8.1.130.0000.00819.04
8.1.120.0000.00817.47
8.1.110.0040.00417.40
8.1.100.0040.00417.38
8.1.90.0040.00717.42
8.1.80.0000.00717.45
8.1.70.0000.00817.37
8.1.60.0040.00417.61
8.1.50.0030.00517.52
8.1.40.0000.00817.45
8.1.30.0000.00817.72
8.1.20.0000.00817.61
8.1.10.0040.00417.46
8.1.00.0050.00317.52
8.0.300.0080.00019.77
8.0.290.0050.00316.75
8.0.280.0040.00418.57
8.0.270.0030.00317.26
8.0.260.0040.00418.46
8.0.250.0040.00417.06
8.0.240.0000.00917.05
8.0.230.0000.00817.10
8.0.220.0000.00716.96
8.0.210.0030.00516.87
8.0.200.0050.00216.87
8.0.190.0030.00917.04
8.0.180.0000.00716.89
8.0.170.0000.00717.02
8.0.160.0000.00717.02
8.0.150.0000.00816.95
8.0.140.0040.00416.92
8.0.130.0000.00513.47
8.0.120.0070.00016.83
8.0.110.0050.00316.94
8.0.100.0020.00516.85
8.0.90.0050.00216.89
8.0.80.0070.01017.02
8.0.70.0000.00716.85
8.0.60.0000.00716.85
8.0.50.0000.00716.96
8.0.30.0080.01317.14
8.0.20.0110.00917.40
8.0.10.0040.00417.05
8.0.00.0090.01116.61
7.4.330.0000.00615.55
7.4.320.0030.00616.54
7.4.300.0040.00416.52
7.4.290.0040.00416.63
7.4.280.0080.00016.50
7.4.270.0000.00716.45
7.4.260.0000.01016.58
7.4.250.0040.00316.41
7.4.240.0000.00716.42
7.4.230.0000.00716.62
7.4.220.0100.00716.38
7.4.210.0100.00416.53
7.4.200.0000.00816.52
7.4.160.0130.00416.49
7.4.150.0100.01017.40
7.4.140.0070.01417.86
7.4.130.0130.00916.63
7.4.120.0150.00716.52
7.4.110.0140.00316.65
7.4.100.0160.00816.40
7.4.90.0100.01016.50
7.4.80.0060.01619.39
7.4.70.0040.01416.51
7.4.60.0100.01016.39
7.4.50.0090.00616.55
7.4.40.0170.00016.66
7.4.30.0040.01316.46
7.4.00.0070.00715.11
7.3.330.0060.00013.22
7.3.320.0000.00513.31
7.3.310.0040.00416.24
7.3.300.0000.00716.41
7.3.290.0090.00716.36
7.3.280.0080.01016.37
7.3.270.0170.00017.40
7.3.260.0160.00516.50
7.3.250.0150.00816.47
7.3.240.0080.01116.50
7.3.230.0160.00616.46
7.3.210.0110.00716.57
7.3.200.0090.00916.70
7.3.190.0060.01016.52
7.3.180.0110.00516.39
7.3.170.0110.00716.43
7.3.160.0220.00316.42
7.3.120.0080.01014.78
7.3.110.0050.01114.88
7.3.100.0070.00814.93
7.3.90.0090.00614.74
7.3.80.0110.00514.81
7.3.70.0110.00314.96
7.3.60.0030.01014.74
7.3.50.0070.01014.95
7.3.40.0070.00514.87
7.3.30.0080.00614.81
7.3.20.0050.01016.65
7.3.10.0060.00816.78
7.3.00.0040.00716.75
7.2.330.0210.00316.50
7.2.320.0170.00716.80
7.2.310.0110.01116.76
7.2.300.0090.01316.42
7.2.290.0100.01016.84
7.2.250.0070.01215.18
7.2.240.0110.00615.09
7.2.230.0030.01215.05
7.2.220.0020.01315.27
7.2.210.0050.00815.00
7.2.200.0120.00515.13
7.2.190.0070.00615.05
7.2.180.0100.00515.04
7.2.170.0050.00815.01
7.2.60.0070.01116.97
7.1.330.0090.00715.85
7.1.320.0090.00415.79
7.1.310.0080.00715.91
7.1.300.0080.00715.87
7.1.290.0080.00515.77
7.1.280.0070.00615.79
7.1.270.0060.00615.50
7.1.260.0060.00615.75
7.1.200.0030.01015.64
7.1.70.0000.01217.23
7.1.60.0070.00717.32
7.1.30.1070.06736.51
7.1.20.1400.06736.47
7.1.10.0100.07020.41
7.1.00.1030.06020.59
7.0.200.0030.01316.94
7.0.170.1500.07020.00
7.0.160.0100.06320.09
7.0.150.0530.07720.15
7.0.140.1300.08320.04
7.0.130.1130.06020.04
7.0.120.1170.05720.11
7.0.110.1500.07320.01
7.0.100.0970.07320.12
7.0.90.0030.07720.24
7.0.80.1300.07720.03
7.0.70.1070.08719.96
7.0.60.0200.06019.99
7.0.50.1400.06320.15
7.0.40.1000.05720.16
7.0.30.1770.07020.05
7.0.20.1870.08020.16
7.0.10.1370.05320.09
7.0.00.1430.06720.06

preferences:
58.53 ms | 401 KiB | 5 Q