3v4l.org

run code in 300+ PHP versions simultaneously
<?php $session = (object)[$key = 1 => [$id = 1 => "val"]]; $session->$key[$id];
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/cjXF1
function name:  (null)
number of ops:  10
compiled vars:  !0 = $session, !1 = $key, !2 = $id
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                           ~3      !1, 1
          1        ASSIGN                                           ~4      !2, 1
          2        INIT_ARRAY                                       ~5      'val', ~4
          3        INIT_ARRAY                                       ~6      ~5, ~3
          4        CAST                                          8  ~7      ~6
          5        ASSIGN                                                   !0, ~7
    3     6        FETCH_OBJ_R                                      ~9      !0, !1
          7        FETCH_DIM_R                                      ~10     ~9, !2
          8        FREE                                                     ~10
          9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.3 ms | 1392 KiB | 13 Q