3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $column = array( "person#1"=> array ("name"=>"Leon" , "Age"=>"19" ), "person#2"=> array ("name"=>"Gary" , "Age"=>"31" ), "person#3"=> array ("name"=>"May" , "Age"=>"25" ) ); $new_person=array("person#0"=>array("name"=>"Tony","Age"=>"28")); print_r($new_person+$column);
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Array ( [person#0] => Array ( [name] => Tony [Age] => 28 ) [person#1] => Array ( [name] => Leon [Age] => 19 ) [person#2] => Array ( [name] => Gary [Age] => 31 ) [person#3] => Array ( [name] => May [Age] => 25 ) )