3v4l.org

run code in 300+ PHP versions simultaneously
<?php $randList = array(); for ($i=0;$i<$1000000;$i++) { $randList[] = rand(1, 10); } foreach ($randList as $number) { //echo "$number "; } echo "\n";
Output for 5.4.0 - 5.4.17
Parse error: syntax error, unexpected '1000000' (T_LNUMBER), expecting variable (T_VARIABLE) or '$' in /in/1l61G on line 3
Process exited with code 255.
Output for 5.3.0 - 5.3.27
Parse error: syntax error, unexpected T_LNUMBER, expecting T_VARIABLE or '$' in /in/1l61G on line 3
Process exited with code 255.

preferences:
176.61 ms | 1395 KiB | 53 Q