3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $lookup = array( "Simulator" => "", "Zones" => "1", ); $rightName = "Simulator"; if($lookup && isset($lookup[$rightName])){ result = $lookup[$rightName]; } else { result = false; } echo($result); ?>
Output for 5.3.0 - 5.4.13
Parse error: syntax error, unexpected '=' in /in/I4V62 on line 8
Process exited with code 255.