3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array1 = ['a', 'b']; $array2 = ['c', 'd']; $array3 = ['e', 'f']; $arrays = [$array1, $array2, $array3]; foreach($arrays as $array) { foreach ($array as $element) { echo $element; } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 8, Position 2 = 15
Branch analysis from position: 8
2 jumps found. (Code = 78) Position 1 = 9, Position 2 = 15
Branch analysis from position: 9
2 jumps found. (Code = 77) Position 1 = 10, Position 2 = 13
Branch analysis from position: 10
2 jumps found. (Code = 78) Position 1 = 11, Position 2 = 13
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
Branch analysis from position: 13
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
filename:       /in/1mZaP
function name:  (null)
number of ops:  17
compiled vars:  !0 = $array1, !1 = $array2, !2 = $array3, !3 = $arrays, !4 = $array, !5 = $element
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN                                                   !1, <array>
    5     2        ASSIGN                                                   !2, <array>
    7     3        INIT_ARRAY                                       ~9      !0
          4        ADD_ARRAY_ELEMENT                                ~9      !1
          5        ADD_ARRAY_ELEMENT                                ~9      !2
          6        ASSIGN                                                   !3, ~9
    9     7      > FE_RESET_R                                       $11     !3, ->15
          8    > > FE_FETCH_R                                               $11, !4, ->15
   10     9    > > FE_RESET_R                                       $12     !4, ->13
         10    > > FE_FETCH_R                                               $12, !5, ->13
   11    11    >   ECHO                                                     !5
   10    12      > JMP                                                      ->10
         13    >   FE_FREE                                                  $12
    9    14      > JMP                                                      ->8
         15    >   FE_FREE                                                  $11
   13    16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.06 ms | 1394 KiB | 13 Q