3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $res[] = array('id' => 1, 'first_name'=>'mike', 'last_name'=>'lastname'); echo $res[]; ?>
based on q4sbt
Output for 4.3.2 - 5.4.34
Fatal error: Cannot use [] for reading in /in/2KX7S on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Cannot use [] for reading in /in/2KX7S on line 3