3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo "<form action=\"\" method=\"post\"><input name=\"username\" type=\"text\" autocomplete=\"off\" id=\"username\" />"; echo "<input type=\"checkbox\" id=\"atur_peg\" name=\"atur_peg\" value=\"Ya\" checked />"; echo "<input type=\"submit\"></form>"; echo $username=$_POST['username']; // this can get value echo $atur_peg=$_POST['atur_peg'];?>
Output for 5.3.0 - 7.2.0
<form action="" method="post"><input name="username" type="text" autocomplete="off" id="username" /><input type="checkbox" id="atur_peg" name="atur_peg" value="Ya" checked /><input type="submit"></form> Notice: Undefined index: username in /in/fFNAt on line 6 Notice: Undefined index: atur_peg in /in/fFNAt on line 7
Output for 4.3.0 - 5.2.17
<form action="" method="post"><input name="username" type="text" autocomplete="off" id="username" /><input type="checkbox" id="atur_peg" name="atur_peg" value="Ya" checked /><input type="submit"></form> Notice: Undefined index: username in /in/fFNAt on line 6 Notice: Undefined index: atur_peg in /in/fFNAt on line 7