3v4l.org

run code in 300+ PHP versions simultaneously
<?php $doc = new DOMDocument; $doc->loadXML('<!-- GroupComment --> <key1>KeyValue</key1> <key2 value="key2value"/> <group1> <group1Key>Group1KeyValue</group1Key> </group1>'); $element = $doc->documentElement; echo $element->nodeName, ' / ', $element->tagName;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lssZZ
function name:  (null)
number of ops:  14
compiled vars:  !0 = $doc, !1 = $element
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   NEW                                              $2      'DOMDocument'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
    3     3        INIT_METHOD_CALL                                         !0, 'loadXML'
          4        SEND_VAL_EX                                              '%3C%21--+GroupComment+--%3E%0A%09%3Ckey1%3EKeyValue%3C%2Fkey1%3E%0A%09%3Ckey2+value%3D%22key2value%22%2F%3E%0A%09%3Cgroup1%3E%0A%09%09%3Cgroup1Key%3EGroup1KeyValue%3C%2Fgroup1Key%3E%0A%09%3C%2Fgroup1%3E'
          5        DO_FCALL                                      0          
    9     6        FETCH_OBJ_R                                      ~6      !0, 'documentElement'
          7        ASSIGN                                                   !1, ~6
   10     8        FETCH_OBJ_R                                      ~8      !1, 'nodeName'
          9        ECHO                                                     ~8
         10        ECHO                                                     '+%2F+'
         11        FETCH_OBJ_R                                      ~9      !1, 'tagName'
         12        ECHO                                                     ~9
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.88 ms | 1384 KiB | 13 Q