3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $lookup = array( "Simulator" => "1", "Zones" => "1", ); $rightName = "Simulator"; if($lookup && isset($lookup[$rightName])){ $result = $lookup[$rightName]; } else { $result = false; } echo($result); if(1){ echo(true); } ?>
Output for 4.3.0 - 7.1.0
11