3v4l.org

run code in 300+ PHP versions simultaneously
<?php $doc = DOMDocument::loadXML('<node>old content</node>'); $node = $doc->getElementsByTagName('node')->item(0); var_dump($node->localName);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/LHudT
function name:  (null)
number of ops:  16
compiled vars:  !0 = $doc, !1 = $node
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_STATIC_METHOD_CALL                                  'DOMDocument', 'loadXML'
          1        SEND_VAL                                                 '%3Cnode%3Eold+content%3C%2Fnode%3E'
          2        DO_FCALL                                      0  $2      
          3        ASSIGN                                                   !0, $2
    4     4        INIT_METHOD_CALL                                         !0, 'getElementsByTagName'
          5        SEND_VAL_EX                                              'node'
          6        DO_FCALL                                      0  $4      
          7        INIT_METHOD_CALL                                         $4, 'item'
          8        SEND_VAL_EX                                              0
          9        DO_FCALL                                      0  $5      
         10        ASSIGN                                                   !1, $5
    5    11        INIT_FCALL                                               'var_dump'
         12        FETCH_OBJ_R                                      ~7      !1, 'localName'
         13        SEND_VAL                                                 ~7
         14        DO_ICALL                                                 
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.85 ms | 1394 KiB | 15 Q