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("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 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
Array ( [name] => mary [age] => 24 [sex] => female )
Output for hhvm-3.10.0

Process exited with code 153.