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> <h1>Please input your name</h1> <input type="text" name="nome" method="post"> <?php $nome = $_POST["nome"]; ?> <p><?php $nome ?></p> </body> </html>
Output for 5.3.0 - 5.6.28, hhvm-3.10.0, 7.0.0 - 7.1.0
<!DOCTYPE html> <html> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8"> <title>W3resource!</title> </head> <body> <h1>Please input your name</h1> <input type="text" name="nome" method="post"> Notice: Undefined index: nome in /in/mHnXZ on line 11 <p></p> </body> </html>
Output for hhvm-3.12.0
<!DOCTYPE html> <html> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8"> <title>W3resource!</title> </head> <body> <h1>Please input your name</h1> <input type="text" name="nome" method="post"> Notice: Undefined index: nome in /in/mHnXZ on line -1 <p></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> <h1>Please input your name</h1> <input type="text" name="nome" method="post"> Notice: Undefined index: nome in /in/mHnXZ on line 11 <p></p> </body> </html>