3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $array = array( "name"[]=>"a", "id[]"=>"b", "date[]"=>"c", "name[]"=>"1", "id[]"=>"2", "date[]"=>"3" ); print_r($array); end($array); echo $array['id'];
Output for 5.3.0 - 5.4.27
Parse error: syntax error, unexpected '[', expecting ')' in /in/mVMbf on line 3
Process exited with code 255.