3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array('a' => 'A', 'b' => 'B', 'c' => 'C'); $b = array('a' => 'AA', 'd' => 'DD'); var_dump($a + $b); var_dump(array_merge($a, $b));
Output for git.master, git.master_jit, rfc.property-hooks
array(4) { ["a"]=> string(1) "A" ["b"]=> string(1) "B" ["c"]=> string(1) "C" ["d"]=> string(2) "DD" } array(4) { ["a"]=> string(2) "AA" ["b"]=> string(1) "B" ["c"]=> string(1) "C" ["d"]=> string(2) "DD" }

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:
55.99 ms | 402 KiB | 8 Q