3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $n=0; echo $n; $n+=10; echo $n $n+=10; echo $n $a = array(1,2,3,4,5,6); var_dump (array_slice($a,7));
Output for 5.4.0 - 5.4.30
Parse error: syntax error, unexpected '$n' (T_VARIABLE), expecting ',' or ';' in /in/i0dJv on line 6
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_VARIABLE, expecting ',' or ';' in /in/i0dJv on line 6
Process exited with code 255.