3v4l.org

run code in 300+ PHP versions simultaneously
<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.

preferences:
189.94 ms | 1395 KiB | 66 Q