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 ?>
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [a] => red [b] => green [c] => blue [d] => yellow [0] => 9 [1] => 10 [2] => 11 [3] => 12 [4] => 5 [5] => 6 [6] => 7 [7] => 8 )

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
32.14 ms | 405 KiB | 5 Q