3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a=1;$b=2;$c = array('c'=> 3); $d->d = 4; 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/PdZXD
function name:  (null)
number of ops:  18
compiled vars:  !0 = $a, !1 = $b, !2 = $c, !3 = $d
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 1
          1        ASSIGN                                                   !1, 2
          2        ASSIGN                                                   !2, <array>
          3        ASSIGN_OBJ                                               !3, 'd'
          4        OP_DATA                                                  4
    5     5        ROPE_INIT                                     9  ~11     'This+is+heredoc+test+%23s+'
          6        ROPE_ADD                                      1  ~11     ~11, !0
          7        ROPE_ADD                                      2  ~11     ~11, '%2C+'
          8        ROPE_ADD                                      3  ~11     ~11, !1
          9        ROPE_ADD                                      4  ~11     ~11, '%2C+'
         10        FETCH_DIM_R                                      ~8      !2, 'c'
         11        ROPE_ADD                                      5  ~11     ~11, ~8
         12        ROPE_ADD                                      6  ~11     ~11, '%2C+and+'
         13        FETCH_OBJ_R                                      ~9      !3, 'd'
         14        ROPE_ADD                                      7  ~11     ~11, ~9
         15        ROPE_END                                      8  ~10     ~11, '.%0A'
         16        ECHO                                                     ~10
    8    17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.53 ms | 1384 KiB | 13 Q