3v4l.org

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