3v4l.org

run code in 300+ PHP versions simultaneously
<?php $randList = array(); for ($i=0;$i<$number;$i++) { $randList[] = rand(1, 10); } foreach ($randList as $number) { //echo "$number "; } echo "\n";

preferences:
32.95 ms | 402 KiB | 5 Q