3v4l.org

run code in 300+ PHP versions simultaneously
<?php $html = <<< HTML <html> <head> <script type="text/javascript"> //... function printJSPage() { var printwin=window.open('','haha','top=100,left=100,width=800,height=600'); printwin.document.writeln(' <table border="0" cellspacing="5" cellpadding="0" width="100%">'); printwin.document.writeln(' <tr>'); printwin.document.writeln(' <td align="left" valign="bottom">'); //... printwin.document.writeln('</td>'); //... } </script> </head> </html> HTML; libxml_use_internal_errors(true); $dom = new DOMDocument(); $dom->loadHTML($html); libxml_use_internal_errors(false); echo $dom->saveHTML();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/O0iEf
function name:  (null)
number of ops:  17
compiled vars:  !0 = $html, !1 = $dom
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%3Chtml%3E%0A++++%3Chead%3E%0A++++%3Cscript+type%3D%22text%2Fjavascript%22%3E%0A++++++++%2F%2F...%0A++++++++function+printJSPage%28%29+%7B%0A++++++++var+printwin%3Dwindow.open%28%27%27%2C%27haha%27%2C%27top%3D100%2Cleft%3D100%2Cwidth%3D800%2Cheight%3D600%27%29%3B%0A++++++++printwin.document.writeln%28%27+%3Ctable+border%3D%220%22+cellspacing%3D%225%22+cellpadding%3D%220%22+width%3D%22100%25%22%3E%27%29%3B%0A++++++++printwin.document.writeln%28%27+%3Ctr%3E%27%29%3B%0A++++++++printwin.document.writeln%28%27+%3Ctd+align%3D%22left%22+valign%3D%22bottom%22%3E%27%29%3B%0A++++++++%2F%2F...%0A++++++++printwin.document.writeln%28%27%3C%2Ftd%3E%27%29%3B%0A++++++++%2F%2F...%0A++++++++%7D%0A++++%3C%2Fscript%3E%0A++++%3C%2Fhead%3E%0A%3C%2Fhtml%3E'
   22     1        INIT_FCALL                                               'libxml_use_internal_errors'
          2        SEND_VAL                                                 <true>
          3        DO_ICALL                                                 
   23     4        NEW                                              $4      'DOMDocument'
          5        DO_FCALL                                      0          
          6        ASSIGN                                                   !1, $4
   24     7        INIT_METHOD_CALL                                         !1, 'loadHTML'
          8        SEND_VAR_EX                                              !0
          9        DO_FCALL                                      0          
   25    10        INIT_FCALL                                               'libxml_use_internal_errors'
         11        SEND_VAL                                                 <false>
         12        DO_ICALL                                                 
   27    13        INIT_METHOD_CALL                                         !1, 'saveHTML'
         14        DO_FCALL                                      0  $9      
         15        ECHO                                                     $9
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.13 ms | 1400 KiB | 15 Q