3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $l=array("1","2"); $n = 1; $l[$n]="a"; print_r $l; ?>
Output for 5.4.0 - 5.4.11
Parse error: syntax error, unexpected '$l' (T_VARIABLE) in /in/BTZOe on line 5
Process exited with code 255.
Output for 5.3.0 - 5.3.21
Parse error: syntax error, unexpected T_VARIABLE in /in/BTZOe on line 5
Process exited with code 255.