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/mEeEB
function name:  (null)
number of ops:  13
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  ~9      'Col+'
          2        FETCH_DIM_R                                      ~3      !0, 'col'
          3        ROPE_ADD                                      1  ~9      ~9, ~3
          4        ROPE_ADD                                      2  ~9      ~9, '%0ASub+%3D+'
    5     5        FETCH_CONSTANT                                   ~4      'sub'
          6        FETCH_CONSTANT                                   ~6      'sub_col'
          7        FETCH_DIM_R                                      ~5      !0, ~4
          8        FETCH_DIM_R                                      ~7      ~5, ~6
          9        ROPE_END                                      3  ~8      ~9, ~7
    3    10        ASSIGN                                                   !1, ~8
    7    11        ECHO                                                     !1
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.77 ms | 938 KiB | 14 Q