3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = <<<XML <?xml version="1.0"?> <a> <b> <c> <value>Some Value</value> </c> </b> </a> XML; $a = new SimpleXMLElement($xml); $node = $a->b->c; if ($node) { echo "Node"; } foreach ($a->b->c->children() as $key => $value) { var_dump($value); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 10
Branch analysis from position: 9
2 jumps found. (Code = 77) Position 1 = 15, Position 2 = 21
Branch analysis from position: 15
2 jumps found. (Code = 78) Position 1 = 16, Position 2 = 21
Branch analysis from position: 16
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 21
Branch analysis from position: 10
filename:       /in/m6gQb
function name:  (null)
number of ops:  23
compiled vars:  !0 = $xml, !1 = $a, !2 = $node, !3 = $value, !4 = $key
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%3ESome+Value%3C%2Fvalue%3E%0A++++++++%3C%2Fc%3E%0A++++%3C%2Fb%3E%0A%3C%2Fa%3E'
   13     1        NEW                                              $6      'SimpleXMLElement'
          2        SEND_VAR_EX                                              !0
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !1, $6
   15     5        FETCH_OBJ_R                                      ~9      !1, 'b'
          6        FETCH_OBJ_R                                      ~10     ~9, 'c'
          7        ASSIGN                                                   !2, ~10
   16     8      > JMPZ                                                     !2, ->10
   17     9    >   ECHO                                                     'Node'
   19    10    >   FETCH_OBJ_R                                      ~12     !1, 'b'
         11        FETCH_OBJ_R                                      ~13     ~12, 'c'
         12        INIT_METHOD_CALL                                         ~13, 'children'
         13        DO_FCALL                                      0  $14     
         14      > FE_RESET_R                                       $15     $14, ->21
         15    > > FE_FETCH_R                                       ~16     $15, !3, ->21
         16    >   ASSIGN                                                   !4, ~16
   20    17        INIT_FCALL                                               'var_dump'
         18        SEND_VAR                                                 !3
         19        DO_ICALL                                                 
   19    20      > JMP                                                      ->15
         21    >   FE_FREE                                                  $15
   21    22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.05 ms | 1395 KiB | 15 Q