3v4l.org

run code in 300+ PHP versions simultaneously
<?php /** * Class So79620502 * * @link https://stackoverflow.com/a/79620535/367456 */ final class So79620502 { public const NAMED_IDS_MAP = array( "NamedItem1"=>1234, "NamedItem2"=>2345, "NamedItem3"=>3456, ); public static $mapNamedIds = So79620502::NAMED_IDS_MAP; } var_dump(So79620502::NAMED_IDS_MAP); var_dump(So79620502::$mapNamedIds);
Output for git.master_jit, git.master, rfc.property-hooks
array(3) { ["NamedItem1"]=> int(1234) ["NamedItem2"]=> int(2345) ["NamedItem3"]=> int(3456) } array(3) { ["NamedItem1"]=> int(1234) ["NamedItem2"]=> int(2345) ["NamedItem3"]=> int(3456) }

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