3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.12 ms | 1394 KiB | 15 Q