3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo() { $html = '<b>Hello</b><i>World</i>'; $doc = new DOMDocument(); $element = $doc->createDocumentFragment(); $element->appendXML($html); foreach ($element->childNodes as $child) { $element = null; //$doc = null; var_dump($child->nodeValue); } } foo();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Vrnqm
function name:  (null)
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   INIT_FCALL                                               'foo'
          1        DO_FCALL                                      0          
          2      > RETURN                                                   1

Function foo:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 12, Position 2 = 19
Branch analysis from position: 12
2 jumps found. (Code = 78) Position 1 = 13, Position 2 = 19
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
filename:       /in/Vrnqm
function name:  foo
number of ops:  21
compiled vars:  !0 = $html, !1 = $doc, !2 = $element, !3 = $child
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%3Cb%3EHello%3C%2Fb%3E%3Ci%3EWorld%3C%2Fi%3E'
    4     1        NEW                                              $5      'DOMDocument'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !1, $5
    5     4        INIT_METHOD_CALL                                         !1, 'createDocumentFragment'
          5        DO_FCALL                                      0  $8      
          6        ASSIGN                                                   !2, $8
    6     7        INIT_METHOD_CALL                                         !2, 'appendXML'
          8        SEND_VAR_EX                                              !0
          9        DO_FCALL                                      0          
    7    10        FETCH_OBJ_R                                      ~11     !2, 'childNodes'
         11      > FE_RESET_R                                       $12     ~11, ->19
         12    > > FE_FETCH_R                                               $12, !3, ->19
    8    13    >   ASSIGN                                                   !2, null
   10    14        INIT_FCALL                                               'var_dump'
         15        FETCH_OBJ_R                                      ~14     !3, 'nodeValue'
         16        SEND_VAL                                                 ~14
         17        DO_ICALL                                                 
    7    18      > JMP                                                      ->12
         19    >   FE_FREE                                                  $12
   12    20      > RETURN                                                   null

End of function foo

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.93 ms | 1399 KiB | 16 Q