3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array('foo' => 'bar', 'some' => 'string', 'me' => 'is original'); $b = array(42 => 'answer to the life and everything', 1337 => 'leet', 'me' => 'is overridden'); print_r(array( $a + $b, array_merge($a, $b), array_replace($a, $b) ));

preferences:
48.72 ms | 406 KiB | 5 Q