3v4l.org

run code in 300+ PHP versions simultaneously
<?php $note=<<<XML <note> <to>Tove</to> <from>Jani</from> <heading>Reminder</heading> <body>Don't forget me this weekend!</body> </note> XML; $xml=simplexml_load_string($note); foreach ($xml->children() as $child) { echo "Child node: " . $child . "<br>"; } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 8, Position 2 = 13
Branch analysis from position: 8
2 jumps found. (Code = 78) Position 1 = 9, Position 2 = 13
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
filename:       /in/iccbR
function name:  (null)
number of ops:  15
compiled vars:  !0 = $note, !1 = $xml, !2 = $child
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%3Cnote%3E%0A%3Cto%3ETove%3C%2Fto%3E%0A%3Cfrom%3EJani%3C%2Ffrom%3E%0A%3Cheading%3EReminder%3C%2Fheading%3E%0A%3Cbody%3EDon%27t+forget+me+this+weekend%21%3C%2Fbody%3E%0A%3C%2Fnote%3E'
   12     1        INIT_FCALL                                               'simplexml_load_string'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $4      
          4        ASSIGN                                                   !1, $4
   13     5        INIT_METHOD_CALL                                         !1, 'children'
          6        DO_FCALL                                      0  $6      
          7      > FE_RESET_R                                       $7      $6, ->13
          8    > > FE_FETCH_R                                               $7, !2, ->13
   15     9    >   CONCAT                                           ~8      'Child+node%3A+', !2
         10        CONCAT                                           ~9      ~8, '%3Cbr%3E'
         11        ECHO                                                     ~9
   13    12      > JMP                                                      ->8
         13    >   FE_FREE                                                  $7
   17    14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
198.44 ms | 1399 KiB | 15 Q