3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = <<<XML <?xml version="1.0"?> <a> <b> <c> <value>Node Value</value> </c> </b> </a> XML; $a = new SimpleXMLElement($xml); foreach ($a->b->c->children() as $child) { var_dump(isset($child)); var_dump($child); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 10, Position 2 = 19
Branch analysis from position: 10
2 jumps found. (Code = 78) Position 1 = 11, Position 2 = 19
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
filename:       /in/5eDRu
function name:  (null)
number of ops:  21
compiled vars:  !0 = $xml, !1 = $a, !2 = $child
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%3C%3Fxml+version%3D%221.0%22%3F%3E%0A%3Ca%3E%0A++++%3Cb%3E%0A++++++++%3Cc%3E%0A++++++++++++%3Cvalue%3ENode+Value%3C%2Fvalue%3E%0A++++++++%3C%2Fc%3E%0A++++%3C%2Fb%3E%0A%3C%2Fa%3E'
   13     1        NEW                                              $4      'SimpleXMLElement'
          2        SEND_VAR_EX                                              !0
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !1, $4
   15     5        FETCH_OBJ_R                                      ~7      !1, 'b'
          6        FETCH_OBJ_R                                      ~8      ~7, 'c'
          7        INIT_METHOD_CALL                                         ~8, 'children'
          8        DO_FCALL                                      0  $9      
          9      > FE_RESET_R                                       $10     $9, ->19
         10    > > FE_FETCH_R                                               $10, !2, ->19
   16    11    >   INIT_FCALL                                               'var_dump'
         12        ISSET_ISEMPTY_CV                                 ~11     !2
         13        SEND_VAL                                                 ~11
         14        DO_ICALL                                                 
   17    15        INIT_FCALL                                               'var_dump'
         16        SEND_VAR                                                 !2
         17        DO_ICALL                                                 
   15    18      > JMP                                                      ->10
         19    >   FE_FREE                                                  $10
   18    20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.21 ms | 1395 KiB | 15 Q