3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
Privacy: <input type="radio" name="type" value="2" <?php if($type=='open'){ echo "checked=\"checked\"; } ?>> Open <input type="radio" name="type" value="1" <?php if($type=='closed'){ echo "checked=\"checked\"; } ?>> Closed <input type="radio" name="type" value="0" <?php if($type=='secret'){ echo "checked=\"checked\"; } ?>> Secret
Output for 5.4.0 - 5.6.28, 7.0.0 - 7.1.0
Parse error: syntax error, unexpected 'radio' (T_STRING), expecting ',' or ';' in /in/OdbOK on line 1
Process exited with code 255.
Output for hhvm-3.10.0 - 3.12.0
Fatal error: syntax error, unexpected T_STRING, expecting ',' or ';' in /in/OdbOK on line 1
Process exited with code 255.
Output for 5.3.0 - 5.3.29
Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /in/OdbOK on line 1
Process exited with code 255.