3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<!DOCTYPE> <html> <body> <form method="POST"> <h2>Please enter your name as input : </h2> <input type="text" name="name"/> <input type="submit" name="submit"/> </form> <?php $name=$_POST['name']; echo "HELLO $name"; ?> </body> </html>
Output for 5.3.0 - 5.6.28, hhvm-3.10.0, 7.0.0 - 7.1.0
<!DOCTYPE> <html> <body> <form method="POST"> <h2>Please enter your name as input : </h2> <input type="text" name="name"/> <input type="submit" name="submit"/> </form> Notice: Undefined index: name in /in/Ynvv3 on line 10 HELLO </body> </html>
Output for hhvm-3.12.0
<!DOCTYPE> <html> <body> <form method="POST"> <h2>Please enter your name as input : </h2> <input type="text" name="name"/> <input type="submit" name="submit"/> </form> Notice: Undefined index: name in /in/Ynvv3 on line -1 HELLO </body> </html>
Output for 4.3.0 - 5.2.17
<!DOCTYPE> <html> <body> <form method="POST"> <h2>Please enter your name as input : </h2> <input type="text" name="name"/> <input type="submit" name="submit"/> </form> Notice: Undefined index: name in /in/Ynvv3 on line 10 HELLO </body> </html>