3v4l.org

run code in 300+ PHP versions simultaneously
<?php $headers1 = [ 'content-type' => ['application/foo'], '-1' => ['custom'], ]; $headers2 = [ 'content-type' => ['application/bar'], '-1' => ['override'], ]; var_dump($headers1); var_dump(array_merge($headers1, $headers2));
Output for git.master, git.master_jit, rfc.property-hooks
array(2) { ["content-type"]=> array(1) { [0]=> string(15) "application/foo" } [-1]=> array(1) { [0]=> string(6) "custom" } } array(3) { ["content-type"]=> array(1) { [0]=> string(15) "application/bar" } [0]=> array(1) { [0]=> string(6) "custom" } [1]=> array(1) { [0]=> string(8) "override" } }

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:
28.97 ms | 406 KiB | 5 Q