3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $var = 'PHP' ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title><?php $var ?></title> </head> <body> <h3><?php $var ?></h3> <form action="" method="post"> <h1>PLease input your name</h1> <input type="text" name="name"> <input type="submit" value="envoyer formulaire"> <?php $name = $_POST['name']; ?> <p>HELLO <?php $name ?>!</p> </form> </body> </html>
based on s17cs
Output for 5.3.0 - 7.1.0
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title></title> </head> <body> <h3></h3> <form action="" method="post"> <h1>PLease input your name</h1> <input type="text" name="name"> <input type="submit" value="envoyer formulaire"> Notice: Undefined index: name in /in/M5chc on line 14 <p>HELLO !</p> </form> </body> </html>
Output for 4.3.0 - 5.2.17
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title></title> </head> <body> <h3></h3> <form action="" method="post"> <h1>PLease input your name</h1> <input type="text" name="name"> <input type="submit" value="envoyer formulaire"> Notice: Undefined index: name in /in/M5chc on line 14 <p>HELLO !</p> </form> </body> </html>