3v4l.org

run code in 300+ PHP versions simultaneously
<?php $result = []; $result["store"]["this"]["here"] = "test"; $key = "['store']['this']['here']"; var_dump(eval("echo \$result".$key.";"));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VNSR0
function name:  (null)
number of ops:  13
compiled vars:  !0 = $result, !1 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        FETCH_DIM_W                                      $3      !0, 'store'
          2        FETCH_DIM_W                                      $4      $3, 'this'
          3        ASSIGN_DIM                                               $4, 'here'
          4        OP_DATA                                                  'test'
    5     5        ASSIGN                                                   !1, '%5B%27store%27%5D%5B%27this%27%5D%5B%27here%27%5D'
    7     6        INIT_FCALL                                               'var_dump'
          7        CONCAT                                           ~7      'echo+%24result', !1
          8        CONCAT                                           ~8      ~7, '%3B'
          9        INCLUDE_OR_EVAL                                  $9      ~8, EVAL
         10        SEND_VAR                                                 $9
         11        DO_ICALL                                                 
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.47 ms | 1009 KiB | 14 Q