3v4l.org

run code in 500+ PHP versions simultaneously
<?php $original = array("data" => "original value"); $element_reference = &$original["data"]; #unset($element_reference); $copy = $original; $copy["data"] = "value set in copy"; $copy["foo"] = "another value added in copy"; echo "Original(?): "; var_dump($original); echo "Copy(?): "; var_dump($copy);
Output for rfc.property-hooks, git.master, git.master_jit
Original(?): array(1) { ["data"]=> &string(17) "value set in copy" } Copy(?): array(2) { ["data"]=> &string(17) "value set in copy" ["foo"]=> string(27) "another value added in copy" }

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:
57.54 ms | 2839 KiB | 4 Q