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."]; foreach($students as $key=>$value) { echo $key; }
Output for 5.3.0 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
<pre> Notice: Undefined index: Students Name in /in/OZDU4 on line 10 20123
Output for hhvm-3.10.0

Process exited with code 153.
Output for 4.3.0 - 5.2.17
<pre> Notice: Undefined index: Students Name in /in/OZDU4 on line 10 20123