3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<select id="conditions" name="conditions"> <option></option> <?php foreach($option in $optionList){ echo "<option value=$option "; if($_REQUEST["conditions"] == $option){ echo 'selected="selected"'; } echo " > $option </option>"; } echo "</select>"; if($_REQUEST["conditions"] == "Other"){ echo '<div id="specify" style="display:block">If Other, Please Specify</div>'; }else{ echo '<div id="specify" style="display:hidden">If Other, Please Specify</div>'; } ?>
Output for 5.4.0 - 5.4.29
Parse error: syntax error, unexpected 'in' (T_STRING) in /in/otSur on line 4
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_STRING in /in/otSur on line 4
Process exited with code 255.