3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array( array('james','Brandun','test'), array('james0','Brandun0','test0'), array('james1','Brandun1','test1') ); foreach ($array as $subArray) { $length = count($subArray); for($i=0; $i<$length; $i++){ $subArray[i]; } } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 2, Position 2 = 14
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 14
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
2 jumps found. (Code = 44) Position 1 = 13, Position 2 = 7
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 7
2 jumps found. (Code = 44) Position 1 = 13, Position 2 = 7
Branch analysis from position: 13
Branch analysis from position: 7
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
filename:       /in/UdCOh
function name:  (null)
number of ops:  16
compiled vars:  !0 = $array, !1 = $subArray, !2 = $length, !3 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    9     1      > FE_RESET_R                                       $5      !0, ->14
          2    > > FE_FETCH_R                                               $5, !1, ->14
   10     3    >   COUNT                                            ~6      !1
          4        ASSIGN                                                   !2, ~6
   12     5        ASSIGN                                                   !3, 0
          6      > JMP                                                      ->11
   13     7    >   FETCH_CONSTANT                                   ~9      'i'
          8        FETCH_DIM_R                                      ~10     !1, ~9
          9        FREE                                                     ~10
   12    10        PRE_INC                                                  !3
         11    >   IS_SMALLER                                               !3, !2
         12      > JMPNZ                                                    ~12, ->7
    9    13    > > JMP                                                      ->2
         14    >   FE_FREE                                                  $5
   16    15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
136.78 ms | 1398 KiB | 13 Q