3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo($foo) { echo "Executing foo\n"; } set_error_handler(function($errno, $errstr) { throw new Exception(array_search($errno, $errors) . ": " . $errstr); }); try { foo(); } catch (Exception $e) { echo $e->getMessage(), "\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.01018.43
8.3.50.0210.00721.14
8.3.40.0100.00718.97
8.3.30.0080.00818.83
8.3.20.0110.00720.30
8.3.10.0040.00423.37
8.3.00.0040.00420.21
8.2.180.0040.01516.50
8.2.170.0090.00622.96
8.2.160.0030.01020.39
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0030.00526.16
8.2.120.0030.00617.75
8.2.110.0040.00820.43
8.2.100.0070.00317.93
8.2.90.0050.00219.27
8.2.80.0080.00017.97
8.2.70.0050.00517.63
8.2.60.0040.00418.04
8.2.50.0060.00618.07
8.2.40.0030.00619.41
8.2.30.0060.00322.41
8.2.20.0050.00417.75
8.2.10.0030.00618.14
8.2.00.0000.00817.92
8.1.280.0130.00325.92
8.1.270.0100.01023.88
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0090.00022.72
8.1.230.0030.01117.75
8.1.220.0000.00817.79
8.1.210.0040.00418.77
8.1.200.0060.00317.25
8.1.190.0080.00017.23
8.1.180.0000.00818.10
8.1.170.0000.00818.46
8.1.160.0030.00322.02
8.1.150.0000.00818.81
8.1.140.0000.00917.37
8.1.130.0000.00717.61
8.1.120.0000.00717.47
8.1.110.0040.00317.38
8.1.100.0040.00417.41
8.1.90.0070.00017.45
8.1.80.0030.00417.38
8.1.70.0000.00717.44
8.1.60.0020.00517.58
8.1.50.0050.00317.54
8.1.40.0000.00817.42
8.1.30.0000.00817.52
8.1.20.0040.00417.56
8.1.10.0000.00717.47
8.1.00.0060.00317.39
8.0.300.0060.00318.77
8.0.290.0000.00716.58
8.0.280.0030.00318.33
8.0.270.0000.00717.06
8.0.260.0030.00317.17
8.0.250.0040.00416.86
8.0.240.0000.00716.85
8.0.230.0030.00316.93
8.0.220.0030.00316.84
8.0.210.0040.00416.79
8.0.200.0000.00716.98
8.0.190.0070.00017.02
8.0.180.0000.00817.00
8.0.170.0000.00916.97
8.0.160.0050.00216.94
8.0.150.0070.00016.95
8.0.140.0000.00716.96
8.0.130.0030.00313.33
8.0.120.0050.00316.93
8.0.110.0030.00616.97
8.0.100.0050.00316.84
8.0.90.0030.00316.84
8.0.80.0040.01016.91
8.0.70.0000.00716.80
8.0.60.0040.00416.98
8.0.50.0000.00816.72
8.0.30.0100.00917.17
8.0.20.0130.00517.40
8.0.10.0000.00717.15
8.0.00.0110.00916.81
7.4.330.0000.00515.09
7.4.320.0030.00316.50
7.4.300.0030.00316.39
7.4.290.0000.00716.48
7.4.280.0030.00516.50
7.4.270.0030.00316.63
7.4.260.0030.00316.61
7.4.250.0000.00716.45
7.4.240.0020.00616.62
7.4.230.0030.00316.59
7.4.220.0060.01916.62
7.4.210.0080.00816.61
7.4.200.0000.00716.68
7.4.160.0080.01216.60
7.4.150.0090.00917.40
7.4.140.0100.01117.86
7.4.130.0120.00716.63
7.4.120.0080.00916.53
7.4.110.0100.00716.78
7.4.100.0120.00616.36
7.4.90.0090.00916.47
7.4.80.0110.00619.39
7.4.70.0070.01116.61
7.4.60.0040.01116.43
7.4.50.0060.00316.32
7.4.40.0070.01016.53
7.4.30.0100.00716.60
7.4.00.0100.00715.10
7.3.330.0060.00013.22
7.3.320.0030.00313.22
7.3.310.0070.00016.27
7.3.300.0070.00016.29
7.3.290.0080.00616.27
7.3.280.0100.00916.25
7.3.270.0030.01617.40
7.3.260.0120.00616.56
7.3.250.0130.00616.39
7.3.240.0190.00416.34
7.3.230.0080.00916.56
7.3.210.0060.00916.26
7.3.200.0110.00616.40
7.3.190.0120.00316.38
7.3.180.0060.00916.44
7.3.170.0120.00916.46
7.3.160.0090.00916.36
7.2.330.0110.00716.46
7.2.320.0060.01216.57
7.2.310.0090.00616.68
7.2.300.0110.00616.59
7.2.290.0060.01016.65
7.2.60.0030.00616.95
7.2.00.0090.00919.27
7.1.200.0050.00515.81
7.1.100.0040.01117.82
7.1.70.0090.00017.16
7.1.60.0090.01619.29
7.1.50.0030.02016.86
7.1.00.0000.08022.40
7.0.200.0100.00316.79
7.0.60.0070.05720.01
7.0.50.0030.04017.84
7.0.40.0030.04319.98
7.0.30.0200.05020.19
7.0.20.0300.05320.23
7.0.10.0000.08020.09
7.0.00.0030.07020.22
5.6.280.0030.03320.92
5.6.210.0000.09020.77
5.6.200.0070.06718.19
5.6.190.0100.06720.58
5.6.180.0230.04320.68
5.6.170.0300.07320.62
5.6.160.0230.06720.54
5.6.150.0170.07018.27
5.6.140.0070.08318.23
5.6.130.0000.08718.27
5.6.120.0000.08721.12
5.6.110.0170.07320.89
5.6.100.0170.05020.98
5.6.90.0100.08020.99
5.6.80.0100.07020.53
5.5.350.0200.07720.34
5.5.340.0100.04717.98
5.5.330.0170.03320.42
5.5.320.0100.07320.31
5.5.310.0230.03020.27
5.5.300.0000.05317.95
5.5.290.0070.07318.03
5.5.280.0030.07020.89
5.5.270.0100.03320.98
5.5.260.0070.06020.86
5.5.250.0100.06720.69
5.5.240.0030.08020.25
5.4.450.0830.05319.49
5.4.440.0870.07319.33
5.4.430.0870.06719.59
5.4.420.0730.05719.37
5.4.410.0670.06719.18
5.4.400.0830.05019.03
5.4.390.0800.04319.01
5.4.380.0900.06318.88
5.4.370.1000.05719.17
5.4.360.1100.06319.15
5.4.350.0800.06319.01
5.4.340.0770.06019.14
5.4.320.0770.05719.00
5.4.310.0800.06019.25
5.4.300.0770.05319.18
5.4.290.0870.06019.35
5.4.280.0900.05718.87
5.4.270.0730.07019.14
5.4.260.0900.06319.05
5.4.250.1000.06719.26
5.4.240.0770.05719.27
5.4.230.0670.06018.83
5.4.220.0430.06719.12
5.4.210.0630.04719.26
5.4.200.0600.06018.87
5.4.190.0700.05318.82
5.4.180.0730.05319.26
5.4.170.0670.05319.25
5.4.160.0670.05319.34
5.4.150.0530.06719.25
5.4.140.0730.05316.52
5.4.130.0770.04716.51
5.4.120.0600.04716.48
5.4.110.0330.05316.43
5.4.100.0300.05316.45
5.4.90.0570.06016.28
5.4.80.0530.06316.57
5.4.70.0000.03716.27
5.4.60.0200.07716.47
5.4.50.0200.04016.55
5.4.40.0200.07016.43
5.4.30.0070.07016.39
5.4.20.0130.06716.16
5.4.10.0230.08016.60

preferences:
37.16 ms | 401 KiB | 5 Q