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"> <title>W3resource!</title> </head> <body> <h2>Inseriscil il nome</h2> <form action="POST"> <input type="text" name="nome"> <input type="submit" name="submit"> </form> <?php $name = $_POST["nome"]; ?> <p>Ciao <?php echo '$nome' ?></p> </body> </html>
Output for 5.3.0 - 7.1.0
<!DOCTYPE html> <html> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8"> <title>W3resource!</title> </head> <body> <h2>Inseriscil il nome</h2> <form action="POST"> <input type="text" name="nome"> <input type="submit" name="submit"> </form> Notice: Undefined index: nome in /in/9dFqF on line 14 <p>Ciao $nome</p> </body> </html>
Output for 4.3.0 - 5.2.17
<!DOCTYPE html> <html> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8"> <title>W3resource!</title> </head> <body> <h2>Inseriscil il nome</h2> <form action="POST"> <input type="text" name="nome"> <input type="submit" name="submit"> </form> Notice: Undefined index: nome in /in/9dFqF on line 14 <p>Ciao $nome</p> </body> </html>