3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = ['item1', 'item2', 'item3']; $array3 = array(); foreach ($array as $sleutel){ $array2 = array(); for ($i = 0; $i < 3; $i++){ $array2[]= $i*2; } $array3[$sleutel] = $array2; } var_dump($array3); ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 3, Position 2 = 16
Branch analysis from position: 3
2 jumps found. (Code = 78) Position 1 = 4, Position 2 = 16
Branch analysis from position: 4
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
2 jumps found. (Code = 44) Position 1 = 13, Position 2 = 7
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 7
2 jumps found. (Code = 44) Position 1 = 13, Position 2 = 7
Branch analysis from position: 13
Branch analysis from position: 7
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
filename:       /in/N48tD
function name:  (null)
number of ops:  21
compiled vars:  !0 = $array, !1 = $array3, !2 = $sleutel, !3 = $array2, !4 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        ASSIGN                                                   !1, <array>
    4     2      > FE_RESET_R                                       $7      !0, ->16
          3    > > FE_FETCH_R                                               $7, !2, ->16
    5     4    >   ASSIGN                                                   !3, <array>
    6     5        ASSIGN                                                   !4, 0
          6      > JMP                                                      ->11
    7     7    >   MUL                                              ~11     !4, 2
          8        ASSIGN_DIM                                               !3
          9        OP_DATA                                                  ~11
    6    10        PRE_INC                                                  !4
         11    >   IS_SMALLER                                               !4, 3
         12      > JMPNZ                                                    ~13, ->7
    9    13    >   ASSIGN_DIM                                               !1, !2
         14        OP_DATA                                                  !3
    4    15      > JMP                                                      ->3
         16    >   FE_FREE                                                  $7
   11    17        INIT_FCALL                                               'var_dump'
         18        SEND_VAR                                                 !1
         19        DO_ICALL                                                 
   12    20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.38 ms | 1436 KiB | 14 Q