3v4l.org

run code in 300+ PHP versions simultaneously
<?php function test ($x, $y) { if (($x + $y) > 0) { test($x, $y - 1); return; } return $y; } function test2 ($x) { if ($x < time()) { test2($x + 1); return; } return $x; } echo test2(test(111, 110));

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)
7.2.60.3610.02778.80
7.2.02.0760.02078.11
7.1.200.1090.02677.61
7.1.100.0870.00417.97
7.1.70.2010.01078.99
7.1.60.0320.02679.08
7.1.50.0800.01579.17
7.1.00.0070.14384.36
7.0.200.7410.01370.61
7.0.80.2430.10775.60
7.0.70.2070.09075.63
7.0.60.2970.06775.58
7.0.50.1930.08376.02
7.0.40.0200.07720.01
7.0.30.0200.10320.18
7.0.20.0200.10020.14
7.0.10.0130.10720.12
7.0.00.0130.10720.07
5.6.280.0170.10085.49
5.6.230.0370.09085.39
5.6.220.0300.07085.45
5.6.210.0300.10385.38
5.6.200.0200.13085.75
5.6.190.0300.11385.83
5.6.180.0370.10085.80
5.6.170.0230.11785.88
5.6.160.0170.08785.74
5.6.150.0430.10785.83
5.6.140.0230.06385.75
5.6.130.0230.11085.84
5.6.120.0400.10085.79
5.6.110.0300.08785.64
5.6.100.0370.09785.66
5.6.90.0200.07785.87
5.6.80.0330.09085.23
5.6.70.0430.12085.18
5.6.60.0270.08785.06
5.6.50.0230.11385.14
5.6.40.0330.06385.09
5.6.30.0300.10385.18
5.6.20.0430.09385.09
5.6.10.0170.07385.14
5.6.00.0230.07085.16
5.5.370.0300.09785.22
5.5.360.0300.07085.05
5.5.350.0170.07385.17
5.5.340.0400.08085.60
5.5.330.0430.08385.53
5.5.320.0370.07385.60
5.5.310.0330.10385.58
5.5.300.0230.07385.57
5.5.290.0330.09785.64
5.5.280.0300.05085.64
5.5.270.0170.08785.52
5.5.260.0230.10385.44
5.5.250.0370.07785.16
5.5.240.0400.09085.01
5.5.230.0230.10084.87
5.5.220.0370.11084.73
5.5.210.0330.11084.70
5.5.200.0170.11084.80
5.5.190.0200.09384.78
5.5.180.0300.06784.90
5.5.160.0330.10784.87
5.5.150.0230.10784.92
5.5.140.0030.07784.79
5.5.130.0300.06784.92
5.5.120.0130.12784.79
5.5.110.0330.09084.70
5.5.100.0270.10084.79
5.5.90.0270.12384.75
5.5.80.0230.10384.88
5.5.70.0230.06384.65
5.5.60.0300.05384.77
5.5.50.0300.05084.85
5.5.40.0170.07384.71
5.5.30.0130.07084.77
5.5.20.0300.04084.64
5.5.10.0270.05384.83
5.5.00.0200.07384.73

preferences:
35.49 ms | 400 KiB | 5 Q