3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array( 'col' => 'val', 'sub' => array( 'sub_col' => 'sub_val' )); $here = <<<HTML Col {$arr[col]} Sub = {$arr[sub][sub_col]} HTML; echo $here;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/JTmKW
function name:  (null)
number of ops:  14
compiled vars:  !0 = $arr, !1 = $here
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    4     1        ROPE_INIT                                     4  ~10     'Col+'
          2        FETCH_CONSTANT                                   ~3      'col'
          3        FETCH_DIM_R                                      ~4      !0, ~3
          4        ROPE_ADD                                      1  ~10     ~10, ~4
          5        ROPE_ADD                                      2  ~10     ~10, '%0ASub+%3D+'
    5     6        FETCH_CONSTANT                                   ~5      'sub'
          7        FETCH_CONSTANT                                   ~7      'sub_col'
          8        FETCH_DIM_R                                      ~6      !0, ~5
          9        FETCH_DIM_R                                      ~8      ~6, ~7
         10        ROPE_END                                      3  ~9      ~10, ~8
    3    11        ASSIGN                                                   !1, ~9
    7    12        ECHO                                                     !1
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.97 ms | 1393 KiB | 13 Q