3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo = ['a','b','c']; $fooR = []; for ($i = 0; $i<3; $i++) { $fooR[$i] =& $foo[$i]; } var_dump($fooR);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
2 jumps found. (Code = 44) Position 1 = 11, Position 2 = 4
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 4
2 jumps found. (Code = 44) Position 1 = 11, Position 2 = 4
Branch analysis from position: 11
Branch analysis from position: 4
filename:       /in/NKWuZ
function name:  (null)
number of ops:  15
compiled vars:  !0 = $foo, !1 = $fooR, !2 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN                                                   !1, <array>
    6     2        ASSIGN                                                   !2, 0
          3      > JMP                                                      ->9
    7     4    >   FETCH_DIM_W                                      $7      !0, !2
          5        MAKE_REF                                         $8      $7
          6        FETCH_DIM_W                                      $6      !1, !2
          7        ASSIGN_REF                                               $6, $8
    6     8        PRE_INC                                                  !2
          9    >   IS_SMALLER                                               !2, 3
         10      > JMPNZ                                                    ~11, ->4
   10    11    >   INIT_FCALL                                               'var_dump'
         12        SEND_VAR                                                 !1
         13        DO_ICALL                                                 
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.9 ms | 1394 KiB | 15 Q