3v4l.org

run code in 300+ PHP versions simultaneously
<?php $X['high'] = 1234; $var = array("X","high"); echo $$var[0][$var[1]]; echo ${$var[0]}[$var[1]];
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/cvZqc
function name:  (null)
number of ops:  14
compiled vars:  !0 = $X, !1 = $var
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN_DIM                                               !0, 'high'
          1        OP_DATA                                                  1234
    4     2        ASSIGN                                                   !1, <array>
    5     3        FETCH_DIM_R                                      ~6      !1, 1
          4        FETCH_R                      local               ~4      !1
          5        FETCH_DIM_R                                      ~5      ~4, 0
          6        FETCH_DIM_R                                      ~7      ~5, ~6
          7        ECHO                                                     ~7
    7     8        FETCH_DIM_R                                      ~8      !1, 0
          9        FETCH_DIM_R                                      ~10     !1, 1
         10        FETCH_R                      local               ~9      ~8
         11        FETCH_DIM_R                                      ~11     ~9, ~10
         12        ECHO                                                     ~11
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.63 ms | 1397 KiB | 13 Q