3v4l.org

run code in 300+ PHP versions simultaneously
<?php $movies = array( array( "title" => "Rear Window", "director" => "Alfred Hitchcock", "year" => 1954 ), array( "title" => "Full Metal Jacket", "director" => "Stanley Kubrick", "year" => 1987 ), array( "title" => "Mean Streets", "director" => "Martin Scorsese", "year" => 1973 ) ); echo $movies[0]["title"]
Output for 7.0.0 - 7.0.20, 7.1.0 - 7.1.7
Parse error: syntax error, unexpected end of file, expecting ',' or ';' in /in/PbLrm on line 34
Process exited with code 255.

preferences:
178.09 ms | 1395 KiB | 36 Q