3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<html> <head> <title>Online PHP Script Execution</title> </head> <body> <form method="POST"> <input type="text" name="txt"> <input type="submit" name="sub"> </form> <?php $var=$_POST['txt']; echo "Hello".$var; ?> </body> </html>
Output for 5.3.0 - 5.6.28, hhvm-3.10.0 - 3.13.2, 7.0.0 - 7.1.0
<html> <head> <title>Online PHP Script Execution</title> </head> <body> <form method="POST"> <input type="text" name="txt"> <input type="submit" name="sub"> </form> Notice: Undefined index: txt in /in/LPMQf on line 11 Hello</body> </html>
Output for 4.3.0 - 5.2.17
<html> <head> <title>Online PHP Script Execution</title> </head> <body> <form method="POST"> <input type="text" name="txt"> <input type="submit" name="sub"> </form> Notice: Undefined index: txt in /in/LPMQf on line 11 Hello</body> </html>