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);
Output for 4.3.0 - 7.1.0
<pre>Array ( [0] => Array ( [Students Name] => Akash [Roll No.] => 1 [Subject] => c++ [Gender] => male ) [1] => Array ( [Students Name] => Dinesh [Roll No.] => 2 [Subject] => c++ [Gender] => male ) [2] => Array ( [Students Name] => Satish [Roll No.] => 3 [Subject] => c++ [Gender] => male ) [3] => Array ( [Students Name] => Alok [Roll No.] => 4 [Subject] => c++ [Gender] => male ) )