3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array1[0] = 'zero'; $array1[1] = 'one'; $array2[1] = 'one'; $array2[2] = 'two'; $array2[3] = 'three'; var_dump($array1 + $array2); var_dump(array_merge($array1, $array2));
Output for git.master, git.master_jit, rfc.property-hooks
array(4) { [0]=> string(4) "zero" [1]=> string(3) "one" [2]=> string(3) "two" [3]=> string(5) "three" } array(5) { [0]=> string(4) "zero" [1]=> string(3) "one" [2]=> string(3) "one" [3]=> string(3) "two" [4]=> string(5) "three" }

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