3v4l.org

run code in 300+ PHP versions simultaneously
<?php // the unroll: $arr = array(1 => 'one', 2 => 'two', 3 => 'three'); $a = &$arr[1]; // first iteration var_dump($a,$arr); $a = &$arr[2]; var_dump($a,$arr);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/T1VH1
function name:  (null)
number of ops:  14
compiled vars:  !0 = $arr, !1 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        FETCH_DIM_W                                      $3      !0, 1
          2        ASSIGN_REF                                               !1, $3
    5     3        INIT_FCALL                                               'var_dump'
          4        SEND_VAR                                                 !1
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                                 
    6     7        FETCH_DIM_W                                      $6      !0, 2
          8        ASSIGN_REF                                               !1, $6
    7     9        INIT_FCALL                                               'var_dump'
         10        SEND_VAR                                                 !1
         11        SEND_VAR                                                 !0
         12        DO_ICALL                                                 
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.94 ms | 1394 KiB | 15 Q