3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo 'Hello World'; if($_POST["textinput"]) { echo $_POST['textinput']; } else { echo '<form method="post"> <textarea id="textinput" name="textinput"> </textarea> <input type="submit"/>'; }
Output for 5.3.0 - 5.6.28, hhvm-3.10.0, 7.0.0 - 7.1.0
Hello World Notice: Undefined index: textinput in /in/K6NIE on line 5 <form method="post"> <textarea id="textinput" name="textinput"> </textarea> <input type="submit"/>
Output for hhvm-3.12.0
Hello World Notice: Undefined index: textinput in /in/K6NIE on line -1 <form method="post"> <textarea id="textinput" name="textinput"> </textarea> <input type="submit"/>
Output for 4.3.0 - 5.2.17
Hello World Notice: Undefined index: textinput in /in/K6NIE on line 5 <form method="post"> <textarea id="textinput" name="textinput"> </textarea> <input type="submit"/>