3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dom = new DOMDocument(); $dom->loadXML('<root><stuff/><stuff/></root>'); $nodes = $dom->getElementsByTagName('stuff'); array_walk($nodes, 'var_dump'); // expected int(2) from $nodes->length
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/UPItE
function name:  (null)
number of ops:  15
compiled vars:  !0 = $dom, !1 = $nodes
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $2      'DOMDocument'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
    4     3        INIT_METHOD_CALL                                         !0, 'loadXML'
          4        SEND_VAL_EX                                              '%3Croot%3E%3Cstuff%2F%3E%3Cstuff%2F%3E%3C%2Froot%3E'
          5        DO_FCALL                                      0          
    5     6        INIT_METHOD_CALL                                         !0, 'getElementsByTagName'
          7        SEND_VAL_EX                                              'stuff'
          8        DO_FCALL                                      0  $6      
          9        ASSIGN                                                   !1, $6
    6    10        INIT_FCALL                                               'array_walk'
         11        SEND_REF                                                 !1
         12        SEND_VAL                                                 'var_dump'
         13        DO_ICALL                                                 
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
190.83 ms | 1394 KiB | 15 Q