3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $all = array(array("name"=>"peter","age"=>"15","sex"=>"male"),array("name"=>"mary","age"=>"24","sex"=>"female")); $a = array("name"=>"peter","age"=>"15","sex"=>"male"); $b = array("name"=>"mary","age"=>"24","sex"=>"female"); $c = array_merge($a,$b); print_r($c);
based on Hb5qc
Output for 4.3.0 - 7.1.7
Array ( [name] => mary [age] => 24 [sex] => female )