3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $students=array( "name"=>array("akash","jag", "rahul"), "id"=>array(01,02,03), "age"=>array(22,22,22), ); /*print_r($students); unset($students["name"][0]); print_r($students); */ array_values($students["names"]);
Output for 5.3.0 - 7.1.0
Notice: Undefined index: names in /in/ThWD4 on line 11 Warning: array_values() expects parameter 1 to be array, null given in /in/ThWD4 on line 11
Output for 4.3.2 - 5.2.17
Notice: Undefined index: names in /in/ThWD4 on line 11 Warning: array_values(): The argument should be an array in /in/ThWD4 on line 11
Output for 4.3.0 - 4.3.1
Notice: Undefined index: names in /in/ThWD4 on line 11 Warning: array_values() [http://www.php.net/function.array-values]: The argument should be an array in /in/ThWD4 on line 11