run code in 200+ 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="<?php echo htmlentities($_SERVER['PHP_SELF']);?>"> <label for="First number"> First number:</label> </td> <td> <inputtype="text"name="first_num" onkeyup="this.value=this.value.replace(/[^\d]/,'')" placeholder="enter only number"onfocus="if(this.value=='enter only number')this.value='';" onblur="if(this.value=='')this.value='enter only number';" maxlength="20"/> </td> </tr> <br/> <tr> <td> <label for="Second number"> Second number:</label> </td> <td><input type="text" name="sec_num"onkeyup="this.value=this.value.replace(/[^\d]/,'')" placeholder="enter only number" onfocus="if(this.value=='enter only number')this.value='';" onblur="if(this.value=='')this.value='enter only number'; 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 'PHP_SELF' (T_STRING) in /in/5Gcdi on line 12
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_STRING in /in/5Gcdi on line 12
Process exited with code 255.