3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = array("a" => "red", "b" => "green"); $y = array("c" => "blue", "d" => "yellow"); $c = array(5, 6, 7, 8); $d = array(9, 10, 11, 12); print_r(array_merge($x, $y, $d, $c)); // union of $x and $y ?>

preferences:
24.59 ms | 405 KiB | 5 Q