3v4l.org

run code in 300+ PHP versions simultaneously
<?php $keys=array("key1","key2","key3"); $array=array(); $array['key1'] = 'value1'; $cache=&$array; foreach($keys as $key) { $cache=&$cache[$key]; } $cache="value3"; print_r($array);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 6, Position 2 = 10
Branch analysis from position: 6
2 jumps found. (Code = 78) Position 1 = 7, Position 2 = 10
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
filename:       /in/05rQq
function name:  (null)
number of ops:  16
compiled vars:  !0 = $keys, !1 = $array, !2 = $cache, !3 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        ASSIGN                                                   !1, <array>
    4     2        ASSIGN_DIM                                               !1, 'key1'
          3        OP_DATA                                                  'value1'
    5     4        ASSIGN_REF                                               !2, !1
    6     5      > FE_RESET_R                                       $8      !0, ->10
          6    > > FE_FETCH_R                                               $8, !3, ->10
    8     7    >   FETCH_DIM_W                                      $9      !2, !3
          8        ASSIGN_REF                                               !2, $9
    6     9      > JMP                                                      ->6
         10    >   FE_FREE                                                  $8
   10    11        ASSIGN                                                   !2, 'value3'
   11    12        INIT_FCALL                                               'print_r'
         13        SEND_VAR                                                 !1
         14        DO_ICALL                                                 
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.75 ms | 1395 KiB | 15 Q