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'); var_dump($nodes);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1aP0X
function name:  (null)
number of ops:  14
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                                              '%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  $6      
          9        ASSIGN                                                   !1, $6
    7    10        INIT_FCALL                                               'var_dump'
         11        SEND_VAR                                                 !1
         12        DO_ICALL                                                 
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.83 ms | 1385 KiB | 15 Q