3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<!DOCTYPE html>   <html>   <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">      </head>      <body> <html> <form method='post'> <input type="text" name="name"> <input type= "submit" value="submitname"> </form> </body> <?php $name=$_post['name']; echo "hello $name"; ?> </html>
based on IoLur
Output for 5.0.4 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
<!DOCTYPE html>   <html>   <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">      </head>      <body> <html> <form method='post'> <input type="text" name="name"> <input type= "submit" value="submitname"> </form> </body> Notice: Undefined variable: _post in /in/gv3XU on line 16 hello </html>
Output for 4.3.0 - 5.0.3
<!DOCTYPE html>   <html>   <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">      </head>      <body> <html> <form method='post'> <input type="text" name="name"> <input type= "submit" value="submitname"> </form> </body> Notice: Undefined variable: _post in /in/gv3XU on line 16 hello </html>