3v4l.org

run code in 300+ PHP versions simultaneously
<?php $y="hi"; $_SESSION['test'][$y] = 'abc123'; echo $_SESSION['test'][$y];
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0QCbo
function name:  (null)
number of ops:  10
compiled vars:  !0 = $y
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, 'hi'
    5     1        FETCH_W                      global              $2      '_SESSION'
          2        FETCH_DIM_W                                      $3      $2, 'test'
          3        ASSIGN_DIM                                               $3, !0
          4        OP_DATA                                                  'abc123'
    7     5        FETCH_R                      global              ~5      '_SESSION'
          6        FETCH_DIM_R                                      ~6      ~5, 'test'
          7        FETCH_DIM_R                                      ~7      ~6, !0
          8        ECHO                                                     ~7
          9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
194.89 ms | 1392 KiB | 13 Q