3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php //index.php ?> <html> <body> <div> <?php if (isset($_POST['submit_button'])) { echo "<p>Form submitted. Thanks, {$_POST['name']} !</p>" ; } else { ?> <form action="" method="post"> Name: <input type="text" name="name"><br> E-mail: <input type="text" name="email"><br> <input type="submit" name="submit_button"> </form> <?php } ?> </div> </body> </html>
Output for 4.3.0 - 7.1.0
<html> <body> <div> <form action="" method="post"> Name: <input type="text" name="name"><br> E-mail: <input type="text" name="email"><br> <input type="submit" name="submit_button"> </form> </div> </body> </html>