run code in 200+ php & hhvm versions
Bugs & Features
<?php <!DOCTYPE html> <html> <head> <title></title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> </head> <body> <form method='POST'> <h2>Please input your name:</h2> <input type="text" name="name"> <input type="submit" value="Submit Name"> </form> <?php //Retrieve name from query string and store to a local variable $name = $_POST['name']; echo "<h3> Hello $name </h3>"; ?> </body> </html> - See more at: http://www.w3resource.com/php-exercises/php-basic-exercises.php#EDITOR
Output for 5.3.0 - 5.4.29
Parse error: syntax error, unexpected '<' in /in/5kWB0 on line 2
Process exited with code 255.