3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = ['a' => 'a', 'b' => 'b', 'c'=> 'c']; echo <<<JS This is heredoc $array[a], $array[b], $array[c] JS;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ruliS
function name:  (null)
number of ops:  12
compiled vars:  !0 = $array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    5     1        ROPE_INIT                                     6  ~6      'This+is+heredoc+'
          2        FETCH_DIM_R                                      ~2      !0, 'a'
          3        ROPE_ADD                                      1  ~6      ~6, ~2
          4        ROPE_ADD                                      2  ~6      ~6, '%2C+'
          5        FETCH_DIM_R                                      ~3      !0, 'b'
          6        ROPE_ADD                                      3  ~6      ~6, ~3
          7        ROPE_ADD                                      4  ~6      ~6, '%2C+'
          8        FETCH_DIM_R                                      ~4      !0, 'c'
          9        ROPE_END                                      5  ~5      ~6, ~4
         10        ECHO                                                     ~5
    7    11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
175.27 ms | 1441 KiB | 13 Q