3v4l.org

run code in 300+ PHP versions simultaneously
<?php $items=array("a", "b", "c", "d"); for ($j=1;$j<=1;$j++) { for ($i=0;$i<4*$j;$i++) { $item=&$items[$i]; //if (!isset($item)) $item=$j."_".$i; $item=$item.$item; } } 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 = 14
Branch analysis from position: 14
2 jumps found. (Code = 44) Position 1 = 16, Position 2 = 3
Branch analysis from position: 16
2 jumps found. (Code = 77) Position 1 = 20, Position 2 = 24
Branch analysis from position: 20
2 jumps found. (Code = 78) Position 1 = 21, Position 2 = 24
Branch analysis from position: 21
1 jumps found. (Code = 42) Position 1 = 20
Branch analysis from position: 20
Branch analysis from position: 24
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 24
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
2 jumps found. (Code = 44) Position 1 = 13, Position 2 = 5
Branch analysis from position: 13
2 jumps found. (Code = 44) Position 1 = 16, Position 2 = 3
Branch analysis from position: 16
Branch analysis from position: 3
Branch analysis from position: 5
2 jumps found. (Code = 44) Position 1 = 13, Position 2 = 5
Branch analysis from position: 13
Branch analysis from position: 5
filename:       /in/FXeY9
function name:  (null)
number of ops:  29
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                                                      ->14
    4     3    >   ASSIGN                                                   !2, 0
          4      > JMP                                                      ->10
    5     5    >   FETCH_DIM_W                                      $7      !0, !2
          6        ASSIGN_REF                                               !3, $7
    7     7        CONCAT                                           ~9      !3, !3
          8        ASSIGN                                                   !3, ~9
    4     9        PRE_INC                                                  !2
         10    >   MUL                                              ~12     !1, 4
         11        IS_SMALLER                                               !2, ~12
         12      > JMPNZ                                                    ~13, ->5
    3    13    >   PRE_INC                                                  !1
         14    >   IS_SMALLER_OR_EQUAL                                      !1, 1
         15      > JMPNZ                                                    ~15, ->3
   10    16    >   INIT_FCALL                                               'print_r'
         17        SEND_VAR                                                 !0
         18        DO_ICALL                                                 
   12    19      > FE_RESET_R                                       $17     !0, ->24
         20    > > FE_FETCH_R                                               $17, !3, ->24
         21    >   CONCAT                                           ~18     !3, '%0A'
         22        ECHO                                                     ~18
         23      > JMP                                                      ->20
         24    >   FE_FREE                                                  $17
   13    25        INIT_FCALL                                               'print_r'
         26        SEND_VAR                                                 !0
         27        DO_ICALL                                                 
         28      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.36 ms | 1396 KiB | 15 Q