3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dom = new DomDocument; $dom->loadXml('<rows><row><left>Left Side</left><right>Right Side</right></row></rows>'); $nodes = $dom->getElementsByTagName('row'); foreach($nodes as $node) { var_dump($node->childNodes); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 11, Position 2 = 17
Branch analysis from position: 11
2 jumps found. (Code = 78) Position 1 = 12, Position 2 = 17
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
filename:       /in/7DM5e
function name:  (null)
number of ops:  19
compiled vars:  !0 = $dom, !1 = $nodes, !2 = $node
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                                         !0, 'loadXml'
          4        SEND_VAL_EX                                              '%3Crows%3E%3Crow%3E%3Cleft%3ELeft+Side%3C%2Fleft%3E%3Cright%3ERight+Side%3C%2Fright%3E%3C%2Frow%3E%3C%2Frows%3E'
          5        DO_FCALL                                      0          
    6     6        INIT_METHOD_CALL                                         !0, 'getElementsByTagName'
          7        SEND_VAL_EX                                              'row'
          8        DO_FCALL                                      0  $7      
          9        ASSIGN                                                   !1, $7
    7    10      > FE_RESET_R                                       $9      !1, ->17
         11    > > FE_FETCH_R                                               $9, !2, ->17
    8    12    >   INIT_FCALL                                               'var_dump'
         13        FETCH_OBJ_R                                      ~10     !2, 'childNodes'
         14        SEND_VAL                                                 ~10
         15        DO_ICALL                                                 
    7    16      > JMP                                                      ->11
         17    >   FE_FREE                                                  $9
    9    18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.1 ms | 1386 KiB | 15 Q