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[0]["Students Name"]; //echo $students[1]["Roll No."]; foreach($students as $key=>$value) { echo $key; }
Output for 4.3.0 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
<pre>0123
Output for hhvm-3.10.0

Process exited with code 153.