3v4l.org

run code in 300+ PHP versions simultaneously
<?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 git.master, git.master_jit, rfc.property-hooks
<pre> Warning: Undefined array key "Students Name" in /in/OZDU4 on line 10 20123

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
54.49 ms | 401 KiB | 8 Q