3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = <<<DATA <Persons> <Person> <Address> <State> <Code>101</Code> </State> </Address> </Person> <Person> <Address> <State> <Code>101</Code> </State> <Phone> 123456789</Phone> </Address> </Person> </Persons> DATA; $items = simplexml_load_string($data); foreach ($items as $item) { echo $item->Address->State->Code; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 6, Position 2 = 12
Branch analysis from position: 6
2 jumps found. (Code = 78) Position 1 = 7, Position 2 = 12
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
filename:       /in/pW1bN
function name:  (null)
number of ops:  14
compiled vars:  !0 = $data, !1 = $items, !2 = $item
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%3CPersons%3E%0A%3CPerson%3E%0A++++++%3CAddress%3E%0A+++++++++%3CState%3E%0A++++++++++++%3CCode%3E101%3C%2FCode%3E%0A+++++++++%3C%2FState%3E%0A++++++%3C%2FAddress%3E++++%0A%3C%2FPerson%3E++++%0A%3CPerson%3E%0A++++++%3CAddress%3E%0A+++++++++%3CState%3E%0A++++++++++++%3CCode%3E101%3C%2FCode%3E%0A+++++++++%3C%2FState%3E%0A+++++++++%3CPhone%3E+123456789%3C%2FPhone%3E%0A++++++%3C%2FAddress%3E+++%0A%3C%2FPerson%3E%0A%3C%2FPersons%3E'
   23     1        INIT_FCALL                                               'simplexml_load_string'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $4      
          4        ASSIGN                                                   !1, $4
   24     5      > FE_RESET_R                                       $6      !1, ->12
          6    > > FE_FETCH_R                                               $6, !2, ->12
   25     7    >   FETCH_OBJ_R                                      ~7      !2, 'Address'
          8        FETCH_OBJ_R                                      ~8      ~7, 'State'
          9        FETCH_OBJ_R                                      ~9      ~8, 'Code'
         10        ECHO                                                     ~9
   24    11      > JMP                                                      ->6
         12    >   FE_FREE                                                  $6
   26    13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
271.18 ms | 1004 KiB | 14 Q