3v4l.org

run code in 300+ PHP versions simultaneously
<?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); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/WJ8lt
function name:  (null)
number of ops:  6
compiled vars:  !0 = $str
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%3C%21doctype+html%3E%0A%3Chtml%3E%0A%3Chead%3E%0A%3Ctitle%3EMy+Calculator%3C%2Ftitle%3E%0A%3C%2Fhead%3E%0A%3Cbody+align%3D%22center%22%3E%0A%3Cb%3E+MY+CALCULATOR%3C%2Fb%3E%0A%3Ctable+border%3D%220%22+cellpadding%3D%223%22+cellspacing%3D%220%22+align%3D%22center%22%3E%0A%3Ctr%3E%3Ctd%3E%0A%0A%3Cform+method%3D%22POST%22+action%3D%22%22%3E%0A%3Clabel+for%3D%22First+number%22%3E%0AFirst+number%3A%3C%2Flabel%3E%0A%3C%2Ftd%3E%0A%3Ctd%3E%0A%3Cinputtype%3D%22text%22name%3D%22first_num%22%0A%0A%0Amaxlength%3D%2220%22%2F%3E%0A%0A%0A%3C%2Ftd%3E%0A%0A%0A%0A%3C%2Ftr%3E%0A%0A%3Cbr%2F%3E%0A%3Ctr%3E%0A%3Ctd%3E%0A%3Clabel+for%3D%22Second+number%22%3E%0ASecond+number%3A%3C%2Flabel%3E%0A%3C%2Ftd%3E%0A%3Ctd%3E%3Cinput+type%3D%22text%22+name%3D%22sec_num%22+maxlength%3D%2220%22%2F%3E%3C%2Ftd%3E%0A%3C%2Ftr%3E%0A%3Cbr%2F%3E%0A%3Ctr%3E%0A%3Ctd%3E%0A%3Cinput+type%3D%22submit%22+name%3D%22opt%22+value%3D%22%2B%22%2F%3E%0A%26nbsp%3B%0A%3Cinput+type%3D%22submit%22+name%3D%22opt%22+value%3D%22-%22%2F%3E%0A%3C%2Ftd%3E%3Ctd%3E%0A%0A%0A%3Cinput+type%3D%22submit%22+name%3D%22opt%22+value%3D%22%2A%22%2F%3E%0A%0A%26nbsp%3B%0A%3Cinput+type%3D%22submit%22+name%3D%22opt%22+value%3D%22%2F%22%2F%3E%0A%26nbsp%3B%0A%3Cinput+type%3D%22reset%22+value%3D%22RESET%22%3C%2Ftd%3E%0A%0A%3C%2Fform%3E%0A%0A%3C%2Ftr%3E%0A%0A%3C%2Ftable%3E%0A%3C%2Fbody%3E%0A%3C%2Fhtml%3E'
   61     1        INIT_FCALL                                               'htmlentities'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $2      
          4        ECHO                                                     $2
   62     5      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.33 ms | 1395 KiB | 15 Q