3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = '<items><item/><item/><item/></items>'; $dom = DOMDocument::loadXml($xm); var_dump(iterator_to_array($dom->documentElement->childNodes));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9elad
function name:  (null)
number of ops:  14
compiled vars:  !0 = $xml, !1 = $dom, !2 = $xm
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%3Citems%3E%3Citem%2F%3E%3Citem%2F%3E%3Citem%2F%3E%3C%2Fitems%3E'
    5     1        INIT_STATIC_METHOD_CALL                                  'DOMDocument', 'loadXml'
          2        SEND_VAR                                                 !2
          3        DO_FCALL                                      0  $4      
          4        ASSIGN                                                   !1, $4
    8     5        INIT_FCALL                                               'var_dump'
          6        INIT_FCALL                                               'iterator_to_array'
          7        FETCH_OBJ_R                                      ~6      !1, 'documentElement'
          8        FETCH_OBJ_R                                      ~7      ~6, 'childNodes'
          9        SEND_VAL                                                 ~7
         10        DO_ICALL                                         $8      
         11        SEND_VAR                                                 $8
         12        DO_ICALL                                                 
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.78 ms | 1394 KiB | 17 Q