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.0400.04319.30
5.4.310.0370.05719.17
5.4.300.0270.08018.87
5.4.290.0400.03319.09
5.4.280.0430.05318.87
5.4.270.0400.05719.20
5.4.260.0400.06319.16
5.4.250.0370.03319.16
5.4.240.0470.06019.16
5.4.230.0370.07018.99
5.4.220.0230.04719.16
5.4.210.0300.03719.23
5.4.200.0400.06019.30
5.4.190.0330.06319.21
5.4.180.0470.05719.20
5.4.170.0300.04319.30
5.4.160.0370.03019.19
5.4.150.0300.03719.20
5.4.140.0300.03316.32
5.4.130.0400.05316.32
5.4.120.0370.04016.50
5.4.110.0330.03316.46
5.4.100.0470.05716.54
5.4.90.0330.07016.58
5.4.80.0330.05316.35
5.4.70.0470.04016.29
5.4.60.0370.05316.49
5.4.50.0330.04716.24
5.4.40.0400.06016.53
5.4.30.0500.04316.22
5.4.20.0370.03316.52
5.4.10.0300.04016.57
5.4.00.0330.04316.22
5.3.290.0300.03316.22
5.3.280.0300.04316.22
5.3.270.0200.04316.22
5.3.260.0230.04016.22
5.3.250.0330.04716.22
5.3.240.0200.05016.22
5.3.230.0300.06316.22
5.3.220.0370.03716.22
5.3.210.0330.04016.22
5.3.200.0270.04316.22
5.3.190.0270.03716.22
5.3.180.0300.07016.22
5.3.170.0230.03716.22
5.3.160.0330.04716.22
5.3.150.0270.04716.22
5.3.140.0300.07016.22
5.3.130.0300.06716.22
5.3.120.0370.06316.22
5.3.110.0270.04716.22
5.3.100.0400.04016.22
5.3.90.0370.06716.22
5.3.80.0430.06716.22
5.3.70.0430.03716.22
5.3.60.0400.05716.22
5.3.50.0370.07316.22
5.3.40.0400.06016.22
5.3.30.0530.03016.22
5.3.20.0400.06016.22
5.3.10.0270.06016.22
5.3.00.0330.05316.22
5.2.170.0200.03716.22
5.2.160.0330.05016.22
5.2.150.0330.05716.22
5.2.140.0370.03316.22
5.2.130.0400.04016.22
5.2.120.0300.04716.22
5.2.110.0300.03016.22
5.2.100.0400.05016.22
5.2.90.0270.02716.22
5.2.80.0300.05316.22
5.2.70.0300.03316.22
5.2.60.0200.03316.22
5.2.50.0300.04716.22
5.2.40.0330.03016.22
5.2.30.0230.02716.22
5.2.20.0230.05716.22
5.2.10.0130.04016.22
5.2.00.0230.05016.22
5.1.60.0300.04716.22
5.1.50.0270.02716.22
5.1.40.0300.03716.22
5.1.30.0170.03016.22
5.1.20.0170.03316.22
5.1.10.0230.03016.22
5.1.00.0130.03016.22
5.0.50.0100.02016.22
5.0.40.0170.03016.22
5.0.30.0130.06016.22
5.0.20.0130.02716.22
5.0.10.0130.02316.22
5.0.00.0100.04316.22
4.4.90.0130.03716.22
4.4.80.0100.03316.22
4.4.70.0170.01716.22
4.4.60.0100.02016.22
4.4.50.0100.03016.22
4.4.40.0130.03716.22
4.4.30.0130.03316.22
4.4.20.0130.03316.22
4.4.10.0170.02316.22
4.4.00.0100.03316.22
4.3.110.0100.02016.22
4.3.100.0170.02716.22
4.3.90.0170.03016.22
4.3.80.0130.04016.22
4.3.70.0200.01316.22
4.3.60.0170.01316.22
4.3.50.0130.02716.22
4.3.40.0170.04716.22
4.3.30.0100.01316.22
4.3.20.0070.01316.22
4.3.10.0070.01716.22
4.3.00.0070.01316.22

preferences:
138.15 ms | 1394 KiB | 7 Q