3v4l.org

run code in 300+ PHP versions simultaneously
<?php function xrange($start, $end, $step = 1) { for ($i = $start; $i <= $end; $i += $step) { yield $i; } } foreach (xrange(1, 5) as $i) { echo "$i\n"; } // Po dobu 0.1 sekundy vypisuje čísla. $start = microtime(true); foreach (xrange(1, INF) as $i) { if (microtime(true) - $start > .1) { break; } echo "$i\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)
7.3.10.0090.00916.47
7.3.00.0210.00716.73
7.2.130.0220.01316.80
7.2.120.0150.01916.94
7.2.110.0130.01316.91
7.2.100.0160.00916.88
7.2.90.0210.00717.00
7.2.80.0120.01216.85
7.2.70.0140.01416.86
7.2.60.0280.01116.79
7.2.50.0180.00416.95
7.2.40.0100.01317.00
7.2.30.0140.00717.02
7.2.20.0110.01516.96
7.2.10.0190.00316.98
7.2.00.0100.01416.86
7.1.250.0130.02715.75
7.1.70.0080.00817.18
7.1.60.0180.02119.40
7.1.50.0290.01316.85
7.0.200.0880.00414.63

preferences:
34.45 ms | 401 KiB | 5 Q