3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = <<<XML <MembershipCardLists> <MembershipCardInfo> <CardNo>8898990000000083</CardNo> </MembershipCardInfo> <MembershipCardInfo> <CardNo>8898000000000260</CardNo> </MembershipCardInfo> </MembershipCardLists> XML; $xml = simplexml_load_string($x); echo $xml; foreach ($xml->children() as $name) { echo "$name: <br />"; //foreach ($value->children() as $item) { //echo "$item[id], $item[img], $item[cost]<br />"; //} }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 9, Position 2 = 14
Branch analysis from position: 9
2 jumps found. (Code = 78) Position 1 = 10, Position 2 = 14
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
filename:       /in/a1Dk0
function name:  (null)
number of ops:  16
compiled vars:  !0 = $x, !1 = $xml, !2 = $name
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%3CMembershipCardLists%3E%0A%09%3CMembershipCardInfo%3E%0A++++%09%3CCardNo%3E8898990000000083%3C%2FCardNo%3E%0A++++%3C%2FMembershipCardInfo%3E%0A++++%3CMembershipCardInfo%3E%0A++++%09%3CCardNo%3E8898000000000260%3C%2FCardNo%3E%0A+++%09%3C%2FMembershipCardInfo%3E%0A%3C%2FMembershipCardLists%3E'
   13     1        INIT_FCALL                                               'simplexml_load_string'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $4      
          4        ASSIGN                                                   !1, $4
   15     5        ECHO                                                     !1
   17     6        INIT_METHOD_CALL                                         !1, 'children'
          7        DO_FCALL                                      0  $6      
          8      > FE_RESET_R                                       $7      $6, ->14
          9    > > FE_FETCH_R                                               $7, !2, ->14
   18    10    >   NOP                                                      
         11        FAST_CONCAT                                      ~8      !2, '%3A+%3Cbr+%2F%3E'
         12        ECHO                                                     ~8
   17    13      > JMP                                                      ->9
         14    >   FE_FREE                                                  $7
   22    15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.67 ms | 1395 KiB | 15 Q