3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(E_ALL); ini_set('display_errors','1'); function declare_assoc(&$myArray, $value) { $err = error_reporting(); error_reporting(0); $myArray = $value; error_reporting($err); } echo "no errors:\n"; declare_assoc($productitems['a']['b']['c']['d']['e']['f'], 65); var_dump($productitems); echo "errors: \n"; $blah['a']['b']['c']['d']['e']['f'] = 65; var_dump($blah);
Output for git.master, git.master_jit, rfc.property-hooks
no errors: array(1) { ["a"]=> array(1) { ["b"]=> array(1) { ["c"]=> array(1) { ["d"]=> array(1) { ["e"]=> array(1) { ["f"]=> int(65) } } } } } } errors: array(1) { ["a"]=> array(1) { ["b"]=> array(1) { ["c"]=> array(1) { ["d"]=> array(1) { ["e"]=> array(1) { ["f"]=> int(65) } } } } } }

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