3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = "<root> <alfa> <one> <two> </alfa> <beta> <bhi> <bho> </beta> </root>"; $xml = simplexml_load_string($xml); foreach( $xml->children() as $child) { echo $child; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 8, Position 2 = 11
Branch analysis from position: 8
2 jumps found. (Code = 78) Position 1 = 9, Position 2 = 11
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
filename:       /in/1U7mp
function name:  (null)
number of ops:  13
compiled vars:  !0 = $xml, !1 = $child
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%3Croot%3E%0A++++%09%3Calfa%3E%0A%09%09%09%3Cone%3E%0A%09%09%09%3Ctwo%3E%0A++++%09%3C%2Falfa%3E++++%09%0A%09%09%3Cbeta%3E%0A%09%09%09%3Cbhi%3E%0A%09%09%09%3Cbho%3E%0A++++%09%3C%2Fbeta%3E++%0A%09%09%3C%2Froot%3E'
   13     1        INIT_FCALL                                               'simplexml_load_string'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $3      
          4        ASSIGN                                                   !0, $3
   15     5        INIT_METHOD_CALL                                         !0, 'children'
          6        DO_FCALL                                      0  $5      
          7      > FE_RESET_R                                       $6      $5, ->11
          8    > > FE_FETCH_R                                               $6, !1, ->11
   16     9    >   ECHO                                                     !1
   15    10      > JMP                                                      ->8
         11    >   FE_FREE                                                  $6
   17    12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.27 ms | 1394 KiB | 15 Q