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; $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 = 20
Branch analysis from position: 20
2 jumps found. (Code = 44) Position 1 = 22, Position 2 = 3
Branch analysis from position: 22
2 jumps found. (Code = 77) Position 1 = 26, Position 2 = 30
Branch analysis from position: 26
2 jumps found. (Code = 78) Position 1 = 27, Position 2 = 30
Branch analysis from position: 27
1 jumps found. (Code = 42) Position 1 = 26
Branch analysis from position: 26
Branch analysis from position: 30
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 30
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
2 jumps found. (Code = 44) Position 1 = 19, Position 2 = 5
Branch analysis from position: 19
2 jumps found. (Code = 44) Position 1 = 22, Position 2 = 3
Branch analysis from position: 22
Branch analysis from position: 3
Branch analysis from position: 5
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 13
Branch analysis from position: 10
2 jumps found. (Code = 44) Position 1 = 19, Position 2 = 5
Branch analysis from position: 19
Branch analysis from position: 5
Branch analysis from position: 13
filename:       /in/khfMt
function name:  (null)
number of ops:  35
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                                                      ->20
    4     3    >   ASSIGN                                                   !2, 0
          4      > JMP                                                      ->16
    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, ->13
         10    >   CONCAT                                           ~11     !1, '_'
         11        CONCAT                                           ~12     ~11, !2
         12        ASSIGN                                                   !3, ~12
    7    13    >   ASSIGN_OP                                     8  ~14     !3, 'x'
         14        ASSIGN                                                   !3, ~14
    4    15        PRE_INC                                                  !2
         16    >   MUL                                              ~17     !1, 4
         17        IS_SMALLER                                               !2, ~17
         18      > JMPNZ                                                    ~18, ->5
    3    19    >   PRE_INC                                                  !1
         20    >   IS_SMALLER_OR_EQUAL                                      !1, 2
         21      > JMPNZ                                                    ~20, ->3
   10    22    >   INIT_FCALL                                               'print_r'
         23        SEND_VAR                                                 !0
         24        DO_ICALL                                                 
   12    25      > FE_RESET_R                                       $22     !0, ->30
         26    > > FE_FETCH_R                                               $22, !3, ->30
         27    >   CONCAT                                           ~23     !3, '%0A'
         28        ECHO                                                     ~23
         29      > JMP                                                      ->26
         30    >   FE_FREE                                                  $22
   13    31        INIT_FCALL                                               'print_r'
         32        SEND_VAR                                                 !0
         33        DO_ICALL                                                 
         34      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.58 ms | 1392 KiB | 15 Q