3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = "<root> <parent> <child name='Child1' /> <child name='Child2' /> <subparent> <child name='Child3' /> </subparent> </parent> <child name='Child4' /> </root>"; $dom=DOMDocument(); $dom->loadXML($xml);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/O27KQ
function name:  (null)
number of ops:  8
compiled vars:  !0 = $xml, !1 = $dom
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%3Croot%3E%0A++++%3Cparent%3E%0A++++++++%3Cchild+name%3D%27Child1%27+%2F%3E%0A++++++++%3Cchild+name%3D%27Child2%27+%2F%3E%0A++++++++%3Csubparent%3E%0A++++++++++++%3Cchild+name%3D%27Child3%27+%2F%3E%0A++++++++%3C%2Fsubparent%3E%0A++++%3C%2Fparent%3E%0A++++%3Cchild+name%3D%27Child4%27+%2F%3E%0A%3C%2Froot%3E'
   13     1        INIT_FCALL_BY_NAME                                       'DOMDocument'
          2        DO_FCALL                                      0  $3      
          3        ASSIGN                                                   !1, $3
   14     4        INIT_METHOD_CALL                                         !1, 'loadXML'
          5        SEND_VAR_EX                                              !0
          6        DO_FCALL                                      0          
          7      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.11 ms | 1393 KiB | 13 Q