3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo = ["bar" => ["baz" => [ "A" => 0, "B" => 1, "C" => 2, ]]]; var_dump($foo); $foo["bar"]["baz"] = ["Title" => "C"]; var_dump($foo); $foo["bar"]["baz"]["Title"] = "D"; var_dump($foo);
Output for git.master, git.master_jit, rfc.property-hooks
array(1) { ["bar"]=> array(1) { ["baz"]=> array(3) { ["A"]=> int(0) ["B"]=> int(1) ["C"]=> int(2) } } } array(1) { ["bar"]=> array(1) { ["baz"]=> array(1) { ["Title"]=> string(1) "C" } } } array(1) { ["bar"]=> array(1) { ["baz"]=> array(1) { ["Title"]=> string(1) "D" } } }

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