3v4l.org

run code in 150+ 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>'; //print_r($students); echo $students["Students Name"]; echo $students[1]["Roll No."];
Output for 5.3.0 - 7.1.0
<pre> Notice: Undefined index: Students Name in /in/jUoDV on line 10 2
Output for 4.3.0 - 5.2.17
<pre> Notice: Undefined index: Students Name in /in/jUoDV on line 10 2