3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
231.05 ms | 1398 KiB | 17 Q