3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php if(isset($_POST)){ $a=$_POST['a']; echo $a; } echo '<form method="post" action=""><input type="text name="a"/><input type="submit" name="ok"/></form>';
Output for 5.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Notice: Undefined index: a in /in/voeoS on line 3 <form method="post" action=""><input type="text name="a"/><input type="submit" name="ok"/></form>
Output for 4.3.0 - 5.2.17
Notice: Undefined index: a in /in/voeoS on line 3 <form method="post" action=""><input type="text name="a"/><input type="submit" name="ok"/></form>