3v4l.org

run code in 300+ PHP versions simultaneously
<?php function retry($retries) { try { throw new \Exception(); } catch (\Exception $e) { if (!$retries) { throw new FailingTooHardException('', 0, $e); } retry($retries - 1, $fn) } } retry(5);

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)
5.4.320.0130.04018.99
5.4.310.0200.05719.22
5.4.300.0130.03719.21
5.4.290.0130.04018.99
5.4.280.0170.03719.07
5.4.270.0200.07018.83
5.4.260.0170.04319.14
5.4.250.0270.06019.08
5.4.240.0100.05019.30
5.4.230.0230.06718.86
5.4.220.0170.06719.15
5.4.210.0130.04019.14
5.4.200.0100.08018.83
5.4.190.0170.06019.21
5.4.180.0200.06719.21
5.4.170.0130.04319.07
5.4.160.0170.07318.81
5.4.150.0230.07019.11
5.4.140.0130.06716.32
5.4.130.0170.07016.45
5.4.120.0230.03716.50
5.4.110.0470.06716.54
5.4.100.0170.04716.26
5.4.90.0370.03716.51
5.4.80.0300.06316.45
5.4.70.0730.06016.44
5.4.60.0470.07016.56
5.4.50.0230.07016.50
5.4.40.0300.03016.51
5.4.30.0500.05716.16
5.4.20.0500.06716.37
5.4.10.0270.06716.56
5.4.00.0470.06715.76
5.3.290.0300.04314.58
5.3.280.0300.07014.68
5.3.270.0230.07314.85
5.3.260.0230.06014.57
5.3.250.0300.06314.58
5.3.240.0200.04714.52
5.3.230.0230.04714.66
5.3.220.0230.07314.55
5.3.210.0300.06714.64
5.3.200.0230.06714.55
5.3.190.0170.04314.57
5.3.180.0270.06714.69
5.3.170.0200.03714.64
5.3.160.0200.03714.57
5.3.150.0170.07014.50
5.3.140.0430.06014.62
5.3.130.0200.07014.63
5.3.120.0200.03714.60
5.3.110.0270.06314.61
5.3.100.0270.04014.03
5.3.90.0330.04714.10
5.3.80.0230.06314.03
5.3.70.0230.06713.93
5.3.60.0170.05013.98
5.3.50.0300.06013.86
5.3.40.0230.06713.97
5.3.30.0200.07014.05
5.3.20.0230.07013.62
5.3.10.0200.06713.74
5.3.00.0170.06713.56
5.2.170.0130.03711.37
5.2.160.0170.03311.29
5.2.150.0170.06011.38
5.2.140.0070.03711.22
5.2.130.0100.03711.01
5.2.120.0130.02711.02
5.2.110.0100.05311.07
5.2.100.0130.06011.05
5.2.90.0170.05711.02
5.2.80.0200.03711.15
5.2.70.0100.04011.05
5.2.60.0170.05711.02
5.2.50.0130.04311.16
5.2.40.0170.02311.00
5.2.30.0170.03010.88
5.2.20.0170.03010.94
5.2.10.0170.02311.09
5.2.00.0100.06310.64
5.1.60.0130.0339.89
5.1.50.0200.05310.07
5.1.40.0170.0409.91
5.1.30.0200.05310.57
5.1.20.0130.03710.43
5.1.10.0130.0509.97
5.1.00.0230.0509.97
5.0.50.0070.0478.43
5.0.40.0030.0238.34
5.0.30.0030.0378.12
5.0.20.0100.0238.25
5.0.10.0100.0178.18
5.0.00.0070.0338.14
4.4.90.0070.0277.63
4.4.80.0100.0137.63
4.4.70.0070.0237.63
4.4.60.0000.0207.63
4.4.50.0070.0207.63
4.4.40.0070.0237.63
4.4.30.0070.0207.63
4.4.20.0070.0177.63
4.4.10.0100.0277.63
4.4.00.0000.0437.63
4.3.110.0070.0137.63
4.3.100.0030.0177.63
4.3.90.0100.0437.63
4.3.80.0070.0437.63
4.3.70.0100.0237.63
4.3.60.0100.0207.63
4.3.50.0030.0207.63
4.3.40.0030.0377.63
4.3.30.0100.0307.63
4.3.20.0000.0337.63
4.3.10.0000.0277.63
4.3.00.0000.0177.63

preferences:
142.05 ms | 1394 KiB | 7 Q