3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $categoryMap = array("ARCH" => "Architects (Degreed & Licensed - Active & Retired)", "ARCHPROF" => "Architectural Professionals (Degreed)", "ENG" => "Engineers (Degreed & Licensed - Active & Retired)", "ENGPROF" => "Engineering Professionals (Degreed)", "NON-US" => "Non-U.S. Architects and Engineers & Architectural and Engineering Professionals", "XMISC" => "Other Supporters and A&E Students"); $occupationMap = array("L" => "Degreed & Licensed", "U" => "Degreed", "S" => "Student", "O" => "Other"); $a = array("a" => "ARCH"); function rrmdir($i) { global $categoryMap, $a; echo $categoryMap[($a[$i])] . "!!"; }; rrmdir("a");
Output for 4.3.0 - 7.1.0
Architects (Degreed & Licensed - Active & Retired)!!