3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<html> <head> <title>TEST</title> </head> <body> <form method='POST'> <h2>Please input your name:</h2> <input type="text" name="name" /> <input type="submit" value="Submit Name" /> </form> <?php $name = $_POST['name']; echo "<h3> Hello $name </h3>"; ?> </body> </html>
Output for 5.3.0 - 5.6.28, hhvm-3.10.0 - 3.13.2, 7.0.0 - 7.1.0
<html> <head> <title>TEST</title> </head> <body> <form method='POST'> <h2>Please input your name:</h2> <input type="text" name="name" /> <input type="submit" value="Submit Name" /> </form> Notice: Undefined index: name in /in/RMiQk on line 13 <h3> Hello </h3> </body> </html>
Output for 4.3.0 - 5.2.17
<html> <head> <title>TEST</title> </head> <body> <form method='POST'> <h2>Please input your name:</h2> <input type="text" name="name" /> <input type="submit" value="Submit Name" /> </form> Notice: Undefined index: name in /in/RMiQk on line 13 <h3> Hello </h3> </body> </html>