3v4l.org

run code in 300+ PHP versions simultaneously
<!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <title>The HTML5 Herald</title> <meta name="description" content="Website Homepage"> <meta name="author" content="Milos Djokic"> <link rel="stylesheet" href="css.css"> <script> function loadXMLDoc() { var xmlhttp; if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp=new XMLHttpRequest(); } else {// code for IE6, IE5 xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); } xmlhttp.onreadystatechange=function() { if (xmlhttp.readyState==4 && xmlhttp.status==200) { document.getElementById("ajaxdiv").innerHTML=xmlhttp.responseText; } } xmlhttp.open("GET","author.txt",true); xmlhttp.send(); } </script> </head> <body> <div id="ajaxdiv"> <h2>Let AJAX change this text</h2> </div> <button type="button" onclick="loadXMLDoc()">Show Author</button> <BR> <BR> Show Current Table - SELECT: <?php include 'select.php';?> <BR> <BR> INSERT: <form action="insert.php" method="post"> Firstname: <input type="text" name="firstname"> Lastname: <input type="text" name="lastname"> Age: <input type="text" name="age"> <input type="submit"> </form> <BR> <BR> UPDATE AGE: <form action="insert.php" method="post"> Firstname: <input type="text" name="firstname"> Lastname: <input type="text" name="lastname"> Age: <input type="text" name="age"> <input type="submit"> </form> <BR> <BR> DELETE USING FIRSTNAME AND LASTNAME: <form action="delete.php" method="post"> Firstname: <input type="text" name="firstname"> Lastname: <input type="text" name="lastname"> Age: <input type="text" name="age"> <input type="submit"> </form> <BR> <BR> <footer> <?php echo "<p>Copyright &copy; 1999-" . date("Y") . " Milos Djokic</p>"; ?> </footer> </body> </html>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/EBtoU
function name:  (null)
number of ops:  11
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    1     0  E >   ECHO                                                     '%3C%21doctype+html%3E%0A%0A%3Chtml+lang%3D%22en%22%3E%0A%3Chead%3E%0A++%3Cmeta+charset%3D%22utf-8%22%3E%0A%0A++%3Ctitle%3EThe+HTML5+Herald%3C%2Ftitle%3E%0A++%3Cmeta+name%3D%22description%22+content%3D%22Website+Homepage%22%3E%0A++%3Cmeta+name%3D%22author%22+content%3D%22Milos+Djokic%22%3E%0A%0A++%3Clink+rel%3D%22stylesheet%22+href%3D%22css.css%22%3E%0A%0A%3Cscript%3E%0Afunction+loadXMLDoc%28%29%0A%7B%0Avar+xmlhttp%3B%0Aif+%28window.XMLHttpRequest%29%0A++%7B%2F%2F+code+for+IE7%2B%2C+Firefox%2C+Chrome%2C+Opera%2C+Safari%0A++xmlhttp%3Dnew+XMLHttpRequest%28%29%3B%0A++%7D%0Aelse%0A++%7B%2F%2F+code+for+IE6%2C+IE5%0A++xmlhttp%3Dnew+ActiveXObject%28%22Microsoft.XMLHTTP%22%29%3B%0A++%7D%0Axmlhttp.onreadystatechange%3Dfunction%28%29%0A++%7B%0A++if+%28xmlhttp.readyState%3D%3D4+%26%26+xmlhttp.status%3D%3D200%29%0A++++%7B%0A++++document.getElementById%28%22ajaxdiv%22%29.innerHTML%3Dxmlhttp.responseText%3B%0A++++%7D%0A++%7D%0Axmlhttp.open%28%22GET%22%2C%22author.txt%22%2Ctrue%29%3B%0Axmlhttp.send%28%29%3B%0A%7D%0A%3C%2Fscript%3E%0A%3C%2Fhead%3E%0A%0A%3Cbody%3E%0A%0A%3Cdiv+id%3D%22ajaxdiv%22%3E%0A%3Ch2%3ELet+AJAX+change+this+text%3C%2Fh2%3E%0A%3C%2Fdiv%3E%0A%3Cbutton+type%3D%22button%22+onclick%3D%22loadXMLDoc%28%29%22%3EShow+Author%3C%2Fbutton%3E%0A%0A%3CBR%3E%0A%3CBR%3E%0A%0AShow+Current+Table+-+SELECT%3A%0A'
   49     1        INCLUDE_OR_EVAL                                          'select.php', INCLUDE
   50     2        ECHO                                                     '%0A%3CBR%3E%0A%3CBR%3E%0A%0AINSERT%3A%0A%3Cform+action%3D%22insert.php%22+method%3D%22post%22%3E%0AFirstname%3A+%3Cinput+type%3D%22text%22+name%3D%22firstname%22%3E%0ALastname%3A+%3Cinput+type%3D%22text%22+name%3D%22lastname%22%3E%0AAge%3A+%3Cinput+type%3D%22text%22+name%3D%22age%22%3E%0A%3Cinput+type%3D%22submit%22%3E%0A%3C%2Fform%3E%0A%0A%3CBR%3E%0A%3CBR%3E%0A%0AUPDATE+AGE%3A%0A%3Cform+action%3D%22insert.php%22+method%3D%22post%22%3E%0AFirstname%3A+%3Cinput+type%3D%22text%22+name%3D%22firstname%22%3E%0ALastname%3A+%3Cinput+type%3D%22text%22+name%3D%22lastname%22%3E%0AAge%3A+%3Cinput+type%3D%22text%22+name%3D%22age%22%3E%0A%3Cinput+type%3D%22submit%22%3E%0A%3C%2Fform%3E%0A%0A%3CBR%3E%0A%3CBR%3E%0A%0ADELETE+USING+FIRSTNAME+AND+LASTNAME%3A%0A%3Cform+action%3D%22delete.php%22+method%3D%22post%22%3E%0AFirstname%3A+%3Cinput+type%3D%22text%22+name%3D%22firstname%22%3E%0ALastname%3A+%3Cinput+type%3D%22text%22+name%3D%22lastname%22%3E%0AAge%3A+%3Cinput+type%3D%22text%22+name%3D%22age%22%3E%0A%3Cinput+type%3D%22submit%22%3E%0A%3C%2Fform%3E%0A%0A%3CBR%3E%0A%3CBR%3E%0A%0A%3Cfooter%3E%0A'
   89     3        INIT_FCALL                                               'date'
          4        SEND_VAL                                                 'Y'
          5        DO_ICALL                                         $1      
          6        CONCAT                                           ~2      '%3Cp%3ECopyright+%26copy%3B+1999-', $1
          7        CONCAT                                           ~3      ~2, '+Milos+Djokic%3C%2Fp%3E'
          8        ECHO                                                     ~3
   91     9        ECHO                                                     '%3C%2Ffooter%3E%0A%0A%3C%2Fbody%3E%0A%3C%2Fhtml%3E'
   94    10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.18 ms | 1396 KiB | 15 Q