3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array(); $a[0][0] = "a"; $a[0][1] = "b"; $a[1][0] = "y"; $a[1][1] = "z"; foreach ($a as $v1) { foreach ($v1 as $v2) { echo "$v2\n"; echo "$a\n"; } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 14, Position 2 = 26
Branch analysis from position: 14
2 jumps found. (Code = 78) Position 1 = 15, Position 2 = 26
Branch analysis from position: 15
2 jumps found. (Code = 77) Position 1 = 16, Position 2 = 24
Branch analysis from position: 16
2 jumps found. (Code = 78) Position 1 = 17, Position 2 = 24
Branch analysis from position: 17
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
Branch analysis from position: 24
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
Branch analysis from position: 24
Branch analysis from position: 26
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 26
filename:       /in/JusRb
function name:  (null)
number of ops:  28
compiled vars:  !0 = $a, !1 = $v1, !2 = $v2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        FETCH_DIM_W                                      $4      !0, 0
          2        ASSIGN_DIM                                               $4, 0
          3        OP_DATA                                                  'a'
    5     4        FETCH_DIM_W                                      $6      !0, 0
          5        ASSIGN_DIM                                               $6, 1
          6        OP_DATA                                                  'b'
    6     7        FETCH_DIM_W                                      $8      !0, 1
          8        ASSIGN_DIM                                               $8, 0
          9        OP_DATA                                                  'y'
    7    10        FETCH_DIM_W                                      $10     !0, 1
         11        ASSIGN_DIM                                               $10, 1
         12        OP_DATA                                                  'z'
    9    13      > FE_RESET_R                                       $12     !0, ->26
         14    > > FE_FETCH_R                                               $12, !1, ->26
   10    15    > > FE_RESET_R                                       $13     !1, ->24
         16    > > FE_FETCH_R                                               $13, !2, ->24
   11    17    >   NOP                                                      
         18        FAST_CONCAT                                      ~14     !2, '%0A'
         19        ECHO                                                     ~14
   12    20        NOP                                                      
         21        FAST_CONCAT                                      ~15     !0, '%0A'
         22        ECHO                                                     ~15
   10    23      > JMP                                                      ->16
         24    >   FE_FREE                                                  $13
    9    25      > JMP                                                      ->14
         26    >   FE_FREE                                                  $12
   14    27      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.7 ms | 1399 KiB | 13 Q