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>'); var_Dump($dom->rows->row); exit; $nodes = $dom->getElementsByTagName('row'); foreach($nodes as $node) { var_dump($node->childNodes->item(0)); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 79) Position 1 = -2
filename:       /in/jG1W6
function name:  (null)
number of ops:  28
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          
    5     6        INIT_FCALL                                               'var_dump'
          7        FETCH_OBJ_R                                      ~7      !0, 'rows'
          8        FETCH_OBJ_R                                      ~8      ~7, 'row'
          9        SEND_VAL                                                 ~8
         10        DO_ICALL                                                 
         11      > EXIT                                                     
    6    12*       INIT_METHOD_CALL                                         !0, 'getElementsByTagName'
         13*       SEND_VAL_EX                                              'row'
         14*       DO_FCALL                                      0  $10     
         15*       ASSIGN                                                   !1, $10
    7    16*       FE_RESET_R                                       $12     !1, ->26
         17*       FE_FETCH_R                                               $12, !2, ->26
    8    18*       INIT_FCALL                                               'var_dump'
         19*       FETCH_OBJ_R                                      ~13     !2, 'childNodes'
         20*       INIT_METHOD_CALL                                         ~13, 'item'
         21*       SEND_VAL_EX                                              0
         22*       DO_FCALL                                      0  $14     
         23*       SEND_VAR                                                 $14
         24*       DO_ICALL                                                 
    7    25*       JMP                                                      ->17
         26*       FE_FREE                                                  $12
    9    27*     > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.63 ms | 1399 KiB | 15 Q