3v4l.org

run code in 300+ PHP versions simultaneously
<?php $year = array(2015,2016); $no = array(1,2,3,4,5,6,7,8,9,10,11,12); $dr = []; foreach ($year as $yr){ foreach($no as $ss){ $dr[$yr][] = array("value" => 12); } } print_r($dr);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 4, Position 2 = 13
Branch analysis from position: 4
2 jumps found. (Code = 78) Position 1 = 5, Position 2 = 13
Branch analysis from position: 5
2 jumps found. (Code = 77) Position 1 = 6, Position 2 = 11
Branch analysis from position: 6
2 jumps found. (Code = 78) Position 1 = 7, Position 2 = 11
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 4
Branch analysis from position: 4
Branch analysis from position: 11
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
filename:       /in/KHWVr
function name:  (null)
number of ops:  18
compiled vars:  !0 = $year, !1 = $no, !2 = $dr, !3 = $yr, !4 = $ss
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN                                                   !1, <array>
    6     2        ASSIGN                                                   !2, <array>
    7     3      > FE_RESET_R                                       $8      !0, ->13
          4    > > FE_FETCH_R                                               $8, !3, ->13
    8     5    > > FE_RESET_R                                       $9      !1, ->11
          6    > > FE_FETCH_R                                               $9, !4, ->11
    9     7    >   FETCH_DIM_W                                      $10     !2, !3
          8        ASSIGN_DIM                                               $10
          9        OP_DATA                                                  <array>
    8    10      > JMP                                                      ->6
         11    >   FE_FREE                                                  $9
    7    12      > JMP                                                      ->4
         13    >   FE_FREE                                                  $8
   12    14        INIT_FCALL                                               'print_r'
         15        SEND_VAR                                                 !2
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.29 ms | 1395 KiB | 15 Q