3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a1 = array('first'=>'bob', 'last'=>'jones', 'age'=>'48'); $a2 = array('first'=>'sam', 'last'=>'smith', 'age'=>'41'); $a5 = array_merge($a1,$a2); print_r($a5);
based on 5vAYU
Output for 5.6.0 - 7.3.0alpha1
Array ( [first] => sam [last] => smith [age] => 41 )