3v4l.org

run code in 300+ PHP versions simultaneously
<?php /** * Enum So79620502 * * @link https://stackoverflow.com/a/79620535/367456 */ enum So79620502 { public const NAMED_IDS_MAP = array( "NamedItem1" => 1234, "NamedItem2" => 2345, "NamedItem3" => 3456, ); } var_dump(So79620502::NAMED_IDS_MAP);
Output for git.master_jit, git.master, rfc.property-hooks
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:
73.53 ms | 405 KiB | 5 Q