3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.08 ms | 1393 KiB | 13 Q