3v4l.org

run code in 300+ PHP versions simultaneously
<?php $myarray=array_fill ( 1 , 2 , array_fill (0,1,3) ); foreach($myarray as $val_array) { foreach($val_array as $val) { echo $val."\n"; } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 12, Position 2 = 20
Branch analysis from position: 12
2 jumps found. (Code = 78) Position 1 = 13, Position 2 = 20
Branch analysis from position: 13
2 jumps found. (Code = 77) Position 1 = 14, Position 2 = 18
Branch analysis from position: 14
2 jumps found. (Code = 78) Position 1 = 15, Position 2 = 18
Branch analysis from position: 15
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
Branch analysis from position: 18
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
Branch analysis from position: 18
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 20
filename:       /in/5LHtc
function name:  (null)
number of ops:  22
compiled vars:  !0 = $myarray, !1 = $val_array, !2 = $val
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'array_fill'
          1        SEND_VAL                                                 1
          2        SEND_VAL                                                 2
          3        INIT_FCALL                                               'array_fill'
          4        SEND_VAL                                                 0
          5        SEND_VAL                                                 1
          6        SEND_VAL                                                 3
          7        DO_ICALL                                         $3      
          8        SEND_VAR                                                 $3
          9        DO_ICALL                                         $4      
         10        ASSIGN                                                   !0, $4
    6    11      > FE_RESET_R                                       $6      !0, ->20
         12    > > FE_FETCH_R                                               $6, !1, ->20
    8    13    > > FE_RESET_R                                       $7      !1, ->18
         14    > > FE_FETCH_R                                               $7, !2, ->18
   10    15    >   CONCAT                                           ~8      !2, '%0A'
         16        ECHO                                                     ~8
    8    17      > JMP                                                      ->14
         18    >   FE_FREE                                                  $7
    6    19      > JMP                                                      ->12
         20    >   FE_FREE                                                  $6
   12    21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.8 ms | 1395 KiB | 15 Q