3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array(5 => 1, 12 => 2); $arr[] = 56; // This is the same as $arr[13] = 56; // at this point of the script $arr["x"] = 42; // This adds a new element to // the array with key "x" unset($arr[5]); // This removes the element from the array unset($arr); // Th var_dump($arr);
Output for git.master, git.master_jit, rfc.property-hooks
Warning: Undefined variable $arr in /in/R8SF6 on line 15 NULL

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:
41.02 ms | 401 KiB | 8 Q