3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
183.74 ms | 1394 KiB | 15 Q