3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $students = array ( array("Students Name" =>"Akash", "Roll No." =>01, "Subject" =>"c++","Gender" =>"male"), array("Students Name" =>"Dinesh", "Roll No." =>02, "Subject" =>"c++","Gender" =>"male"), array("Students Name" =>"Satish", "Roll No." =>03, "Subject" =>"c++","Gender" =>"male"), array("Students Name" =>"Alok", "Roll No." =>04, "Subject" =>"c++","Gender" =>"male"), ); echo '<pre>''</pre>'; //print_r($students); echo $students[0]["Students Name"];
Output for 5.4.0 - 5.4.30
Parse error: syntax error, unexpected ''</pre>'' (T_CONSTANT_ENCAPSED_STRING), expecting ',' or ';' in /in/aWOon on line 8
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ',' or ';' in /in/aWOon on line 8
Process exited with code 255.