3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = []; foreach( range(0,4) as $rowSet){ foreach (range(0, 11) as $colSet) { if($rowSet == 0) $array[$rowSet][$colSet] = 1; if($rowSet >=1 && $rowSet <= 3) if($colSet !== 11) $array[$rowSet][$colSet] = 2; else $array[$rowSet][$colSet] = 3; if($rowSet == 4) $array[$rowSet][$colSet] = 4; } } foreach($array as $rowSet){ echo implode(",", $rowSet); echo PHP_EOL; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 6, Position 2 = 40
Branch analysis from position: 6
2 jumps found. (Code = 78) Position 1 = 7, Position 2 = 40
Branch analysis from position: 7
2 jumps found. (Code = 77) Position 1 = 12, Position 2 = 38
Branch analysis from position: 12
2 jumps found. (Code = 78) Position 1 = 13, Position 2 = 38
Branch analysis from position: 13
2 jumps found. (Code = 43) Position 1 = 15, Position 2 = 18
Branch analysis from position: 15
2 jumps found. (Code = 46) Position 1 = 20, Position 2 = 22
Branch analysis from position: 20
2 jumps found. (Code = 43) Position 1 = 23, Position 2 = 32
Branch analysis from position: 23
2 jumps found. (Code = 43) Position 1 = 25, Position 2 = 29
Branch analysis from position: 25
1 jumps found. (Code = 42) Position 1 = 32
Branch analysis from position: 32
2 jumps found. (Code = 43) Position 1 = 34, Position 2 = 37
Branch analysis from position: 34
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
Branch analysis from position: 37
Branch analysis from position: 29
2 jumps found. (Code = 43) Position 1 = 34, Position 2 = 37
Branch analysis from position: 34
Branch analysis from position: 37
Branch analysis from position: 32
Branch analysis from position: 22
Branch analysis from position: 18
Branch analysis from position: 38
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
Branch analysis from position: 38
Branch analysis from position: 40
2 jumps found. (Code = 77) Position 1 = 42, Position 2 = 50
Branch analysis from position: 42
2 jumps found. (Code = 78) Position 1 = 43, Position 2 = 50
Branch analysis from position: 43
1 jumps found. (Code = 42) Position 1 = 42
Branch analysis from position: 42
Branch analysis from position: 50
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 50
Branch analysis from position: 40
filename:       /in/Xt7fb
function name:  (null)
number of ops:  52
compiled vars:  !0 = $array, !1 = $rowSet, !2 = $colSet
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, <array>
    6     1        INIT_FCALL                                               'range'
          2        SEND_VAL                                                 0
          3        SEND_VAL                                                 4
          4        DO_ICALL                                         $4      
          5      > FE_RESET_R                                       $5      $4, ->40
          6    > > FE_FETCH_R                                               $5, !1, ->40
    8     7    >   INIT_FCALL                                               'range'
          8        SEND_VAL                                                 0
          9        SEND_VAL                                                 11
         10        DO_ICALL                                         $6      
         11      > FE_RESET_R                                       $7      $6, ->38
         12    > > FE_FETCH_R                                               $7, !2, ->38
   10    13    >   IS_EQUAL                                                 !1, 0
         14      > JMPZ                                                     ~8, ->18
         15    >   FETCH_DIM_W                                      $9      !0, !1
         16        ASSIGN_DIM                                               $9, !2
         17        OP_DATA                                                  1
   11    18    >   IS_SMALLER_OR_EQUAL                              ~11     1, !1
         19      > JMPZ_EX                                          ~11     ~11, ->22
         20    >   IS_SMALLER_OR_EQUAL                              ~12     !1, 3
         21        BOOL                                             ~11     ~12
         22    > > JMPZ                                                     ~11, ->32
         23    >   IS_NOT_IDENTICAL                                         !2, 11
         24      > JMPZ                                                     ~13, ->29
         25    >   FETCH_DIM_W                                      $14     !0, !1
         26        ASSIGN_DIM                                               $14, !2
         27        OP_DATA                                                  2
         28      > JMP                                                      ->32
         29    >   FETCH_DIM_W                                      $16     !0, !1
         30        ASSIGN_DIM                                               $16, !2
         31        OP_DATA                                                  3
   12    32    >   IS_EQUAL                                                 !1, 4
         33      > JMPZ                                                     ~18, ->37
         34    >   FETCH_DIM_W                                      $19     !0, !1
         35        ASSIGN_DIM                                               $19, !2
         36        OP_DATA                                                  4
    8    37    > > JMP                                                      ->12
         38    >   FE_FREE                                                  $7
    6    39      > JMP                                                      ->6
         40    >   FE_FREE                                                  $5
   17    41      > FE_RESET_R                                       $21     !0, ->50
         42    > > FE_FETCH_R                                               $21, !1, ->50
   18    43    >   INIT_FCALL                                               'implode'
         44        SEND_VAL                                                 '%2C'
         45        SEND_VAR                                                 !1
         46        DO_ICALL                                         $22     
         47        ECHO                                                     $22
   19    48        ECHO                                                     '%0A'
   17    49      > JMP                                                      ->42
         50    >   FE_FREE                                                  $21
   20    51      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.7 ms | 1400 KiB | 17 Q