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,10));

preferences:
45.03 ms | 402 KiB | 5 Q