3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<!DOCTYPE html>  <html>  <head>     <title></title>     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">     </head>     <body>     <form method='POST'>     <h2>Please input your name:</h2>   <input type="text" name="name">   <input type="submit" value="Submit Name">   </form>  <?php  //Retrieve name from query string and store to a local variable  $name = $_POST['name'];  echo "<h3> Hello $name </h3>";  ?>  </body>  </html>  
based on CZZaX
Output for 5.4.34 - 7.1.0
<!DOCTYPE html>  <html>  <head>     <title></title>     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">     </head>     <body>     <form method='POST'>     <h2>Please input your name:</h2>   <input type="text" name="name">   <input type="submit" value="Submit Name">   </form>   Notice: Use of undefined constant php   - assumed 'php  ' in /in/Vi4Ei on line 1   </body>  </html>  
Output for 4.3.0 - 5.4.32
<!DOCTYPE html>  <html>  <head>     <title></title>     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">     </head>     <body>     <form method='POST'>     <h2>Please input your name:</h2>   <input type="text" name="name">   <input type="submit" value="Submit Name">   </form>  <?php  //Retrieve name from query string and store to a local variable  $name = $_POST['name'];  echo "<h3> Hello $name </h3>";  ?>  </body>  </html>