3v4l.org

run code in 300+ PHP versions simultaneously
<?php $d = new DOMDocument(); $tmp = $dom->createDocumentFragment(); $tmp->appendXML('<t> foo <tt val="123" /> bar </t>'); var_dump($tmp);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/BDnDb
function name:  (null)
number of ops:  13
compiled vars:  !0 = $d, !1 = $tmp, !2 = $dom
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $3      'DOMDocument'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $3
    4     3        INIT_METHOD_CALL                                         !2, 'createDocumentFragment'
          4        DO_FCALL                                      0  $6      
          5        ASSIGN                                                   !1, $6
    5     6        INIT_METHOD_CALL                                         !1, 'appendXML'
          7        SEND_VAL_EX                                              '%3Ct%3E+foo+%3Ctt+val%3D%22123%22+%2F%3E+bar+%3C%2Ft%3E'
          8        DO_FCALL                                      0          
    6     9        INIT_FCALL                                               'var_dump'
         10        SEND_VAR                                                 !1
         11        DO_ICALL                                                 
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.42 ms | 1394 KiB | 15 Q