3v4l.org

run code in 300+ PHP versions simultaneously
<?php function xrange($start, $limit, $step = 1) { if ($start < $limit) { if ($step <= 0) { throw new LogicException('Step must be +ve'); } echo $step; for ($i = $start; $i <= $limit; $i += $step) { echo 'iter' . $i; yield $i; } } } /* * Note that both range() and xrange() result in the same * output below. */ echo 'Single digit odd numbers from range(): '; foreach (range(1, 9, -5) as $number) { echo "$number "; } echo "\n";

This is an error 404

There are `0` results


preferences:
226.88 ms | 1403 KiB | 7 Q