3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array('name'=>'bar'); $_SESSION['acc'] = $a; $_SESSION['name'] = 'baz'; var_dump($_SESSION['acc']['name']);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/LM0Z0
function name:  (null)
number of ops:  14
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    4     1        FETCH_W                      global              $2      '_SESSION'
          2        ASSIGN_DIM                                               $2, 'acc'
          3        OP_DATA                                                  !0
    6     4        FETCH_W                      global              $4      '_SESSION'
          5        ASSIGN_DIM                                               $4, 'name'
          6        OP_DATA                                                  'baz'
    8     7        INIT_FCALL                                               'var_dump'
          8        FETCH_R                      global              ~6      '_SESSION'
          9        FETCH_DIM_R                                      ~7      ~6, 'acc'
         10        FETCH_DIM_R                                      ~8      ~7, 'name'
         11        SEND_VAL                                                 ~8
         12        DO_ICALL                                                 
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.49 ms | 1385 KiB | 15 Q