3v4l.org

run code in 200+ 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 - 7.2.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 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"/>