3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $all = array(array("name"=>"peter","age"=>"15","sex"=>"male"),array("name"=>"mary","age"=>"24","sex"=>"female")); $a = array("0"=>"peter","1"=>"15","2"=>"male"); $b = array("0"=>"mary","1"=>"24","2"=>"female"); $c = array_merge($a,$b); print_r($c);
based on XbN9F
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Array ( [0] => peter [1] => 15 [2] => male [3] => mary [4] => 24 [5] => female )