3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $str='PHP Tutorial'; $name=$_POST['n']; ?> <html> <head> </head> <body> <form method="POST"> <h3>Please Input Your Name:</h3> <input type="text" name="n" /> <input type="button" value="Submit Name" /> </form> <p><?php echo $name; ?></p> </body> </html>
based on GKdWN
Output for 5.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Notice: Undefined index: n in /in/tfiGa on line 3 <html> <head> </head> <body> <form method="POST"> <h3>Please Input Your Name:</h3> <input type="text" name="n" /> <input type="button" value="Submit Name" /> </form> <p></p> </body> </html>
Output for 4.3.0 - 5.2.17
Notice: Undefined index: n in /in/tfiGa on line 3 <html> <head> </head> <body> <form method="POST"> <h3>Please Input Your Name:</h3> <input type="text" name="n" /> <input type="button" value="Submit Name" /> </form> <p></p> </body> </html>