3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?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 > 20) { break; } echo "$i\n"; } ?>
based on C4rNJ

Abusive script

This script was stopped while abusing our resources