3v4l.org

run code in 300+ PHP versions simultaneously
<?php set_error_handler(function ($errno, $errstr, $errfile, $errline) { $namespace = 'ajf\ErrorExceptions\Dynamic'; $className = implode('', explode(' ', ucwords($errstr))); eval("namespace $namespace { class $className extends \ErrorException {} }"); $fullClassName = $namespace . '\\' . $className; throw new $fullClassName($errstr, 0, $errno, $errfile, $errline); }); $foo = 1/0;

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.40.0090.00618.71
8.3.30.0140.00718.72
8.3.20.0040.00420.33
8.3.10.0090.00021.91
8.3.00.0080.00021.94
8.2.170.0090.00920.86
8.2.160.0100.00322.17
8.2.150.0050.00324.18
8.2.140.0060.00324.66
8.2.130.0000.00821.12
8.2.120.0070.00026.35
8.2.110.0060.00319.10
8.2.100.0030.00917.80
8.2.90.0040.00419.22
8.2.80.0050.00317.97
8.2.70.0000.00917.63
8.2.60.0080.00018.04
8.2.50.0000.00818.09
8.2.40.0060.00322.15
8.2.30.0030.00519.36
8.2.20.0000.00717.66
8.2.10.0050.00217.99
8.2.00.0000.00818.16
8.1.270.0020.00523.99
8.1.260.0040.00428.09
8.1.250.0030.00528.09
8.1.240.0090.00022.09
8.1.230.0110.00017.70
8.1.220.0040.00417.78
8.1.210.0040.00418.77
8.1.200.0060.00317.23
8.1.190.0030.00617.25
8.1.180.0040.00418.10
8.1.170.0000.00818.48
8.1.160.0040.00420.63
8.1.150.0080.00018.96
8.1.140.0000.00819.46
8.1.130.0030.00317.71
8.1.120.0000.00817.31
8.1.110.0030.00317.39
8.1.100.0000.00717.44
8.1.90.0030.00517.38
8.1.80.0070.00017.27
8.1.70.0000.00817.42
8.1.60.0040.00417.57
8.1.50.0040.00417.47
8.1.40.0000.00817.43
8.1.30.0030.00617.57
8.1.20.0040.00417.51
8.1.10.0000.00717.55
8.1.00.0000.00717.37
8.0.300.0040.00418.77
8.0.290.0020.00516.63
8.0.280.0030.00318.28
8.0.270.0070.00017.18
8.0.260.0060.00017.19
8.0.250.0070.00016.93
8.0.240.0000.00816.94
8.0.230.0030.00316.84
8.0.220.0000.00716.91
8.0.210.0000.00716.87
8.0.200.0030.00516.98
8.0.190.0050.00317.06
8.0.180.0030.00316.96
8.0.170.0040.00416.87
8.0.160.0030.00616.98
8.0.150.0050.00316.96
8.0.140.0050.00216.88
8.0.130.0030.00313.40
8.0.120.0050.00316.91
8.0.110.0040.00416.93
8.0.100.0040.00416.96
8.0.90.0040.00416.94
8.0.80.0070.01116.99
8.0.70.0000.00816.80
8.0.60.0050.00316.78
8.0.50.0080.00016.94
8.0.30.0080.01016.96
8.0.20.0110.00717.40
8.0.10.0030.00316.89
8.0.00.0080.01016.79
7.4.330.0050.00016.73
7.4.320.0000.00816.59
7.4.300.0040.00416.37
7.4.290.0040.00316.50
7.4.280.0000.00716.52
7.4.270.0030.00516.61
7.4.260.0000.00716.57
7.4.250.0050.00216.60
7.4.240.0070.00016.42
7.4.230.0030.00316.54
7.4.220.0100.01016.65
7.4.210.0070.00716.61
7.4.200.0000.00716.65
7.4.160.0060.01016.45
7.4.150.0120.00617.40
7.4.140.0110.01017.86
7.4.130.0090.00916.55
7.4.120.0150.00216.48
7.4.110.0110.00616.57
7.4.100.0060.01216.55
7.4.90.0030.01416.39
7.4.80.0090.00919.39
7.4.70.0030.01316.61
7.4.60.0030.01316.36
7.4.50.0050.00816.66
7.4.40.0090.00916.54
7.4.30.0080.01616.44
7.4.00.0080.00314.79
7.3.330.0050.00313.42
7.3.320.0050.00013.39
7.3.310.0040.00416.50
7.3.300.0070.00016.37
7.3.290.0100.00716.51
7.3.280.0080.01116.44
7.3.270.0120.00617.40
7.3.260.0090.00916.45
7.3.250.0120.00716.36
7.3.240.0090.00716.65
7.3.230.0130.01016.43
7.3.210.0120.00616.37
7.3.200.0030.01319.39
7.3.190.0090.01116.43
7.3.180.0120.00416.63
7.3.170.0060.01216.64
7.3.160.0040.01216.73
7.2.330.0090.00916.48
7.2.320.0030.01416.70
7.2.310.0060.01016.65
7.2.300.0110.00716.88
7.2.290.0100.00616.78
7.2.60.0090.00617.11
7.2.00.0080.01119.57
7.1.200.0080.00415.46
7.1.100.0060.00318.12
7.1.70.0040.00717.18
7.1.60.0070.01619.40
7.1.50.0070.01416.85
7.1.00.0030.08322.29
7.0.200.0480.01014.64
7.0.60.0230.07021.83
7.0.50.0000.04717.88
7.0.40.0000.06720.27
7.0.30.0270.06720.31
7.0.20.0200.07320.33
7.0.10.0000.04720.21
7.0.00.0130.07020.20
5.6.280.0070.05321.04
5.6.210.0070.08020.63
5.6.200.0030.05318.16
5.6.190.0030.07020.50
5.6.180.0230.04320.49
5.6.170.0230.08020.48
5.6.160.0170.08020.53
5.6.150.0170.06318.12
5.6.140.0100.07718.15
5.6.130.0030.06018.14
5.6.120.0100.08721.00
5.6.110.0100.08020.98
5.6.100.0070.08320.96
5.6.90.0130.06320.96
5.6.80.0070.06320.51
5.5.350.0030.04020.53
5.5.340.0000.05318.02
5.5.330.0070.08020.41
5.5.320.0130.07320.21
5.5.310.0130.04720.51
5.5.300.0030.08717.92
5.5.290.0100.05318.04
5.5.280.0130.07720.78
5.5.270.0200.07720.87
5.5.260.0070.05320.87
5.5.250.0100.07320.69
5.5.240.0100.04320.29

preferences:
55.91 ms | 400 KiB | 5 Q