3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xmlString = '<?xml version="1.0" encoding="utf-8" ?> <root> </root>'; $doc = new DOMDocument(); $doc->loadXML($xmlString); $attr = $doc->documentElement; var_dump($attr); $attr->nextSibling; var_dump($attr);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/IrP6M
function name:  (null)
number of ops:  18
compiled vars:  !0 = $xmlString, !1 = $doc, !2 = $attr
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%3C%3Fxml+version%3D%221.0%22+encoding%3D%22utf-8%22+%3F%3E%0A%3Croot%3E%0A%3C%2Froot%3E'
    6     1        NEW                                              $4      'DOMDocument'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !1, $4
    7     4        INIT_METHOD_CALL                                         !1, 'loadXML'
          5        SEND_VAR_EX                                              !0
          6        DO_FCALL                                      0          
    8     7        FETCH_OBJ_R                                      ~8      !1, 'documentElement'
          8        ASSIGN                                                   !2, ~8
   10     9        INIT_FCALL                                               'var_dump'
         10        SEND_VAR                                                 !2
         11        DO_ICALL                                                 
   11    12        FETCH_OBJ_R                                      ~11     !2, 'nextSibling'
         13        FREE                                                     ~11
   12    14        INIT_FCALL                                               'var_dump'
         15        SEND_VAR                                                 !2
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
201.69 ms | 1398 KiB | 15 Q