3v4l.org

run code in 300+ PHP versions simultaneously
<?php $vars = array(); $arrayKey = '[0][1]'; $vars[0][1] = "two levels deep"; echo eval("\$a$arrayKey;");
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/jCHTf
function name:  (null)
number of ops:  11
compiled vars:  !0 = $vars, !1 = $arrayKey
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN                                                   !1, '%5B0%5D%5B1%5D'
    6     2        FETCH_DIM_W                                      $4      !0, 0
          3        ASSIGN_DIM                                               $4, 1
          4        OP_DATA                                                  'two+levels+deep'
    8     5        ROPE_INIT                                     3  ~7      '%24a'
          6        ROPE_ADD                                      1  ~7      ~7, !1
          7        ROPE_END                                      2  ~6      ~7, '%3B'
          8        INCLUDE_OR_EVAL                                  $9      ~6, EVAL
          9        ECHO                                                     $9
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.83 ms | 1393 KiB | 13 Q