3v4l.org

run code in 300+ PHP versions simultaneously
<?php $items=array("a","b","c","d"); for ($i=0;$i<4;$i++) { $item=&$item[$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 = 8
Branch analysis from position: 8
2 jumps found. (Code = 44) Position 1 = 10, Position 2 = 3
Branch analysis from position: 10
2 jumps found. (Code = 77) Position 1 = 14, Position 2 = 18
Branch analysis from position: 14
2 jumps found. (Code = 78) Position 1 = 15, Position 2 = 18
Branch analysis from position: 15
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
Branch analysis from position: 3
2 jumps found. (Code = 44) Position 1 = 10, Position 2 = 3
Branch analysis from position: 10
Branch analysis from position: 3
filename:       /in/vJfKI
function name:  (null)
number of ops:  23
compiled vars:  !0 = $items, !1 = $i, !2 = $item
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        ASSIGN                                                   !1, 0
          2      > JMP                                                      ->8
    4     3    >   FETCH_DIM_W                                      $5      !2, !1
          4        ASSIGN_REF                                               !2, $5
    5     5        CONCAT                                           ~7      !2, !2
          6        ASSIGN                                                   !2, ~7
    3     7        PRE_INC                                                  !1
          8    >   IS_SMALLER                                               !1, 4
          9      > JMPNZ                                                    ~10, ->3
    7    10    >   INIT_FCALL                                               'print_r'
         11        SEND_VAR                                                 !0
         12        DO_ICALL                                                 
    9    13      > FE_RESET_R                                       $12     !0, ->18
         14    > > FE_FETCH_R                                               $12, !2, ->18
         15    >   CONCAT                                           ~13     !2, '%0A'
         16        ECHO                                                     ~13
         17      > JMP                                                      ->14
         18    >   FE_FREE                                                  $12
   10    19        INIT_FCALL                                               'print_r'
         20        SEND_VAR                                                 !0
         21        DO_ICALL                                                 
         22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.42 ms | 1395 KiB | 15 Q