3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php if ($_REQUEST['radiotest']) { echo "You chose ".$_REQUEST['radiotest']; } ?> <form> <div><input type='radio' name='radiotest' value='1' /> Option 1</div> <div><input type='radio' name='radiotest' value='2' /> Option 2</div> <div><input type='radio' name='radiotest' value='3' /> Option 3</div> <div><input type='submit' value='Submit' /></div> </form>
Output for 5.3.0 - 7.1.0
Notice: Undefined index: radiotest in /in/817Dk on line 2 <form> <div><input type='radio' name='radiotest' value='1' /> Option 1</div> <div><input type='radio' name='radiotest' value='2' /> Option 2</div> <div><input type='radio' name='radiotest' value='3' /> Option 3</div> <div><input type='submit' value='Submit' /></div> </form>
Output for 4.3.0 - 5.2.17
Notice: Undefined index: radiotest in /in/817Dk on line 2 <form> <div><input type='radio' name='radiotest' value='1' /> Option 1</div> <div><input type='radio' name='radiotest' value='2' /> Option 2</div> <div><input type='radio' name='radiotest' value='3' /> Option 3</div> <div><input type='submit' value='Submit' /></div> </form>