3v4l.org

run code in 300+ PHP versions simultaneously
<?php function xrange($from, $to){ $current = $from; while ($current < $to ) { $current++; yield $current; } } function sum(...$varArgs) { return array_sum($varArgs); } echo sum(...xrange(1,1000));

preferences:
40.31 ms | 402 KiB | 5 Q