3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array(-1 => 'none'); $b = array(15 => '15 sec', 30 => '30 sec', 60 => '1 min'); var_dump(array_merge($a, $b)); var_dump($a + $b);
Output for git.master, git.master_jit, rfc.property-hooks
array(4) { [0]=> string(4) "none" [1]=> string(6) "15 sec" [2]=> string(6) "30 sec" [3]=> string(5) "1 min" } array(4) { [-1]=> string(4) "none" [15]=> string(6) "15 sec" [30]=> string(6) "30 sec" [60]=> string(5) "1 min" }

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