3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arry = []; $arry["name"] = ["val", "val@"]; $arry["nome"] = ["shut", "shit"]; var_dump(array_merge($arry, ["shit"]));

Shows result from various feature-branches currently under review from the php developers. Contact me to have additional branches featured.

Output for branch master
array(3) { ["name"]=> array(2) { [0]=> string(3) "val" [1]=> string(4) "val@" } ["nome"]=> array(2) { [0]=> string(4) "shut" [1]=> string(4) "shit" } [0]=> string(4) "shit" }
Output for branch master_jit
array(3) { ["name"]=> array(2) { [0]=> string(3) "val" [1]=> string(4) "val@" } ["nome"]=> array(2) { [0]=> string(4) "shut" [1]=> string(4) "shit" } [0]=> string(4) "shit" }
Output for branch partials
array(3) { ["name"]=> array(2) { [0]=> string(3) "val" [1]=> string(4) "val@" } ["nome"]=> array(2) { [0]=> string(4) "shut" [1]=> string(4) "shit" } [0]=> string(4) "shit" }
Output for branch literals
array(3) { ["name"]=> array(2) { [0]=> string(3) "val" [1]=> string(4) "val@" } ["nome"]=> array(2) { [0]=> string(4) "shut" [1]=> string(4) "shit" } [0]=> string(4) "shit" }
Output for branch enumerations
array(3) { ["name"]=> array(2) { [0]=> string(3) "val" [1]=> string(4) "val@" } ["nome"]=> array(2) { [0]=> string(4) "shut" [1]=> string(4) "shit" } [0]=> string(4) "shit" }

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