3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $str="<!doctype html> <html> <head> <title>My Calculator</title> </head> <body align="center"> <b> MY CALCULATOR</b> <table border="0" cellpadding="3" cellspacing="0" align="center"> <tr><td> <form method="POST" action=""> <label for="First number"> First number:</label> </td> <td> <inputtype="text"name="first_num" maxlength="20"/> </td> </tr> <br/> <tr> <td> <label for="Second number"> Second number:</label> </td> <td><input type="text" name="sec_num" maxlength="20"/></td> </tr> <br/> <tr> <td> <input type="submit" name="opt" value="+"/> &nbsp; <input type="submit" name="opt" value="-"/> </td><td> <input type="submit" name="opt" value="*"/> &nbsp; <input type="submit" name="opt" value="/"/> &nbsp; <input type="reset" value="RESET"</td> </form> </tr> </table> </body> </html>"; echo htmlentities($str); ?>
Output for 5.4.0 - 5.4.24
Parse error: syntax error, unexpected 'center' (T_STRING) in /in/abSc3 on line 7
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_STRING in /in/abSc3 on line 7
Process exited with code 255.