3v4l.org

run code in 300+ PHP versions simultaneously
<?php $html = <<<EOF <html> <head> <title>test edit</title> {% for item in css %} <link href="{{item}}" type="text/css" rel="stylesheet" /> {% endfor %} </head> <body> <div class="widget-container" id="ini-container"> <div class="widget" id="ini-widget"> <b>bold</b> </div> </div> </body> </html> EOF; $doc = new DOMDocument(); $fragment = $doc->createDocumentFragment(); $fragment->appendXML($html); $doc->appendChild($fragment); $doc->saveHTMLFile('php://output');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/L1Rfe
function name:  (null)
number of ops:  17
compiled vars:  !0 = $html, !1 = $doc, !2 = $fragment
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%3Chtml%3E%0A+++%3Chead%3E%0A++++++%3Ctitle%3Etest+edit%3C%2Ftitle%3E%0A++++++%7B%25+for+item+in+css+%25%7D+++%0A+++++++++%3Clink+href%3D%22%7B%7Bitem%7D%7D%22+type%3D%22text%2Fcss%22+rel%3D%22stylesheet%22+%2F%3E%0A++++++%7B%25+endfor+%25%7D%0A+++%3C%2Fhead%3E%0A+++%3Cbody%3E%0A++++++%3Cdiv+class%3D%22widget-container%22+id%3D%22ini-container%22%3E++++%0A+++++++++%3Cdiv+class%3D%22widget%22+id%3D%22ini-widget%22%3E%0A++++++++++++%3Cb%3Ebold%3C%2Fb%3E%0A+++++++++%3C%2Fdiv%3E%0A++++++%3C%2Fdiv%3E%0A+++%3C%2Fbody%3E%0A%3C%2Fhtml%3E'
   20     1        NEW                                              $4      'DOMDocument'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !1, $4
   21     4        INIT_METHOD_CALL                                         !1, 'createDocumentFragment'
          5        DO_FCALL                                      0  $7      
          6        ASSIGN                                                   !2, $7
   22     7        INIT_METHOD_CALL                                         !2, 'appendXML'
          8        SEND_VAR_EX                                              !0
          9        DO_FCALL                                      0          
   23    10        INIT_METHOD_CALL                                         !1, 'appendChild'
         11        SEND_VAR_EX                                              !2
         12        DO_FCALL                                      0          
   24    13        INIT_METHOD_CALL                                         !1, 'saveHTMLFile'
         14        SEND_VAL_EX                                              'php%3A%2F%2Foutput'
         15        DO_FCALL                                      0          
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.16 ms | 1394 KiB | 13 Q