3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $myArray = array( "0" => array("0" => "test1", "1" => "test2"), "1" => array("0" => "test3", "1" => "test4")); $myArray["0"] = "45"; var_dump($myArray);
Output for 4.3.0 - 5.6.25, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
array(2) { [0]=> string(2) "45" [1]=> array(2) { [0]=> string(5) "test3" [1]=> string(5) "test4" } }