3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<!DOCTYPE html> <html> <body> <form action="" method="post"> Input String: <input type="text" name="name" ><br><br> <input type="submit" value="Submit" name="submit"><br><br> </form> <?php if(isset($_POST['submit'])){ $string = $_POST["name"]; echo "$string"; } ?> </body> </html>
Output for 5.6.0 - 5.6.30, hhvm-3.15.4, 7.0.0 - 7.2.6
<!DOCTYPE html> <html> <body> <form action="" method="post"> Input String: <input type="text" name="name" ><br><br> <input type="submit" value="Submit" name="submit"><br><br> </form> </body> </html>