3v4l.org

run code in 300+ PHP versions simultaneously
<?php $items=array(); for ($j=1;$j<=2;$j++) { for ($i=0;$i<4*$j;$i++) { $item=&$items[$i]; if (!isset($item)) $item=$j."_".$i."x"; $item=$item.="x"; } } print_r($items); foreach ($items as $item) echo $item."\n"; print_r($items);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 21
Branch analysis from position: 21
2 jumps found. (Code = 44) Position 1 = 23, Position 2 = 3
Branch analysis from position: 23
2 jumps found. (Code = 77) Position 1 = 27, Position 2 = 31
Branch analysis from position: 27
2 jumps found. (Code = 78) Position 1 = 28, Position 2 = 31
Branch analysis from position: 28
1 jumps found. (Code = 42) Position 1 = 27
Branch analysis from position: 27
Branch analysis from position: 31
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 31
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
2 jumps found. (Code = 44) Position 1 = 20, Position 2 = 5
Branch analysis from position: 20
2 jumps found. (Code = 44) Position 1 = 23, Position 2 = 3
Branch analysis from position: 23
Branch analysis from position: 3
Branch analysis from position: 5
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 14
Branch analysis from position: 10
2 jumps found. (Code = 44) Position 1 = 20, Position 2 = 5
Branch analysis from position: 20
Branch analysis from position: 5
Branch analysis from position: 14
filename:       /in/QNlle
function name:  (null)
number of ops:  36
compiled vars:  !0 = $items, !1 = $j, !2 = $i, !3 = $item
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        ASSIGN                                                   !1, 1
          2      > JMP                                                      ->21
    4     3    >   ASSIGN                                                   !2, 0
          4      > JMP                                                      ->17
    5     5    >   FETCH_DIM_W                                      $7      !0, !2
          6        ASSIGN_REF                                               !3, $7
    6     7        ISSET_ISEMPTY_CV                                 ~9      !3
          8        BOOL_NOT                                         ~10     ~9
          9      > JMPZ                                                     ~10, ->14
         10    >   CONCAT                                           ~11     !1, '_'
         11        CONCAT                                           ~12     ~11, !2
         12        CONCAT                                           ~13     ~12, 'x'
         13        ASSIGN                                                   !3, ~13
    7    14    >   ASSIGN_OP                                     8  ~15     !3, 'x'
         15        ASSIGN                                                   !3, ~15
    4    16        PRE_INC                                                  !2
         17    >   MUL                                              ~18     !1, 4
         18        IS_SMALLER                                               !2, ~18
         19      > JMPNZ                                                    ~19, ->5
    3    20    >   PRE_INC                                                  !1
         21    >   IS_SMALLER_OR_EQUAL                                      !1, 2
         22      > JMPNZ                                                    ~21, ->3
   10    23    >   INIT_FCALL                                               'print_r'
         24        SEND_VAR                                                 !0
         25        DO_ICALL                                                 
   12    26      > FE_RESET_R                                       $23     !0, ->31
         27    > > FE_FETCH_R                                               $23, !3, ->31
         28    >   CONCAT                                           ~24     !3, '%0A'
         29        ECHO                                                     ~24
         30      > JMP                                                      ->27
         31    >   FE_FREE                                                  $23
   13    32        INIT_FCALL                                               'print_r'
         33        SEND_VAR                                                 !0
         34        DO_ICALL                                                 
         35      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.23 ms | 1400 KiB | 15 Q