3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<html> <head><title>FORM</title></head> <body> <form method='GET'> <input type="text" name="textval"> <input type="SUBMIT" name="btnsub"> </form> <?php echo "Entered text: ".$_GET['textval']; ?> </body> </html>
Output for 5.3.0 - 7.2.0
<html> <head><title>FORM</title></head> <body> <form method='GET'> <input type="text" name="textval"> <input type="SUBMIT" name="btnsub"> </form> Notice: Undefined index: textval in /in/18RMY on line 10 Entered text: </body> </html>
Output for 4.3.0 - 5.2.17
<html> <head><title>FORM</title></head> <body> <form method='GET'> <input type="text" name="textval"> <input type="SUBMIT" name="btnsub"> </form> Notice: Undefined index: textval in /in/18RMY on line 10 Entered text: </body> </html>