3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Everything you enter here will be executed by our servers. Try it! $array = range(1, 10000); foreach (xrange() as $a) { echo "$a\n"; } function xrange () { $i = 0; yield $i++; }

preferences:
36.18 ms | 402 KiB | 5 Q