3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.92 ms | 1396 KiB | 15 Q