3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a1 = array('first'=>'bob', 'last'=>'jones', 'age'=>'48'); $a2 = array('first'=>'sam', 'last'=>'smith', 'age'=>'41'); $a4 = array('first'=>'joe', 'last'=>'johnson', 'age'=>'33'); $a5 = array_merge_recursive($a1,$a2,$a4); print_r($a5);

preferences:
57.02 ms | 402 KiB | 5 Q