3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?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.