3v4l.org

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

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