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"; } ?>

preferences:
29.61 ms | 402 KiB | 5 Q