3v4l.org

run code in 300+ PHP versions simultaneously
<?php $db_name = "users"; // this will act as an index $db[$db_name] = "some value"; // the index "user" which is the value of the variable "$db_name" holds the value "some value" in the "$db" variable echo $db_name . ' | ' . $db[$db_name]; // prints: users | some value
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Bdoha
function name:  (null)
number of ops:  8
compiled vars:  !0 = $db_name, !1 = $db
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'users'
    4     1        ASSIGN_DIM                                               !1, !0
          2        OP_DATA                                                  'some+value'
    5     3        CONCAT                                           ~4      !0, '+%7C+'
          4        FETCH_DIM_R                                      ~5      !1, !0
          5        CONCAT                                           ~6      ~4, ~5
          6        ECHO                                                     ~6
          7      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
213.52 ms | 1005 KiB | 13 Q