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/U6h2k
function name:  (null)
number of ops:  16
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'session_start'
          1        DO_ICALL                                                 
    4     2        ASSIGN                                                   !0, <array>
    6     3        FETCH_W                      global              $3      '_SESSION'
          4        ASSIGN_DIM                                               $3, 'acc'
          5        OP_DATA                                                  !0
    8     6        FETCH_W                      global              $5      '_SESSION'
          7        ASSIGN_DIM                                               $5, 'foo'
          8        OP_DATA                                                  'baz'
   10     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:
303.02 ms | 1394 KiB | 18 Q