3v4l.org

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