3v4l.org

run code in 300+ PHP versions simultaneously
<?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.3.28, 5.4.0 - 5.4.27
Parse error: syntax error, unexpected '[', expecting ')' in /in/mVMbf on line 3
Process exited with code 255.

preferences:
190.43 ms | 1395 KiB | 64 Q