3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<!DOCTYPE html> <head><title>home</title></head> <body> <?php if (filter_has_var(INPUT_POST, "username")){ // the form exists, so work with it $username=filter_input(INPUT_POST, "username"); print "<center><h1>Great going $username!<br>What type of room would you like to create?</h1></center>"; } else { //there's no input, hence create the form print <<<HERE <form action="php/index.php" method="post"> <center> <input type="text" name="fullname" placeholder="Full Name" size="25" required> <input type="email" name="email" placeholder="Email or Mobile" size="25" required> <input type="password" name="psw" placeholder="Password" size="25" required> </center><br> <input type="submit" value="Here You Go!"/><br><br> <center><h4>By clicking "Here You Go!" you agree with our terms & conditions and private policy.</h4></center> </form> HERE; } //end 'value exists' if ?> </body> </html>
Output for 5.2.0 - 7.2.6
<!DOCTYPE html> <head><title>home</title></head> <body> <form action="php/index.php" method="post"> <center> <input type="text" name="fullname" placeholder="Full Name" size="25" required> <input type="email" name="email" placeholder="Email or Mobile" size="25" required> <input type="password" name="psw" placeholder="Password" size="25" required> </center><br> <input type="submit" value="Here You Go!"/><br><br> <center><h4>By clicking "Here You Go!" you agree with our terms & conditions and private policy.</h4></center> </form> </body> </html>
Output for 5.0.0 - 5.1.6
<!DOCTYPE html> <head><title>home</title></head> <body> Fatal error: Call to undefined function filter_has_var() in /in/djrjq on line 4
Process exited with code 255.
Output for 4.4.5 - 4.4.9
<!DOCTYPE html> <head><title>home</title></head> <body> Fatal error: Call to undefined function: filter_has_var() in /in/djrjq on line 4
Process exited with code 255.
Output for 4.3.2 - 4.4.4
<!DOCTYPE html> <head><title>home</title></head> <body> Fatal error: Call to undefined function: filter_has_var() in /in/djrjq on line 4
Process exited with code 255.
Output for 4.3.0 - 4.3.1
<!DOCTYPE html> <head><title>home</title></head> <body> Fatal error: Call to undefined function: filter_has_var() in /in/djrjq on line 4