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 - 3.12.0, 7.0.0 - 7.1.0
Hello World Notice: Undefined index: textinput in /in/TaSbY 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/TaSbY on line 5 <form method="post"> <textarea id="textinput" name="textinput"> </textarea> <input type="submit"/>