3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Source: https://bugs.php.net/bug.php?id=62190 $node = new DOMDocument; $node->loadHTML('<?foo>'); echo $node->firstChild->nextSibling->nodeType;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7bpsv
function name:  (null)
number of ops:  11
compiled vars:  !0 = $node
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   NEW                                              $1      'DOMDocument'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
    5     3        INIT_METHOD_CALL                                         !0, 'loadHTML'
          4        SEND_VAL_EX                                              '%3C%3Ffoo%3E'
          5        DO_FCALL                                      0          
    6     6        FETCH_OBJ_R                                      ~5      !0, 'firstChild'
          7        FETCH_OBJ_R                                      ~6      ~5, 'nextSibling'
          8        FETCH_OBJ_R                                      ~7      ~6, 'nodeType'
          9        ECHO                                                     ~7
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.47 ms | 1392 KiB | 13 Q