3v4l.org

run code in 300+ PHP versions simultaneously
<?php // https://bugs.php.net/bug.php?id=71927 define('great','my'); $great='fantastic'; $my='my value'; echo "This is ${great }\n"; echo "This is ${ great}\n"; echo "This is ${ great }\n"; echo "This is ${great}\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/HfU1g
function name:  (null)
number of ops:  29
compiled vars:  !0 = $great, !1 = $my
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   INIT_FCALL                                               'define'
          1        SEND_VAL                                                 'great'
          2        SEND_VAL                                                 'my'
          3        DO_ICALL                                                 
    5     4        ASSIGN                                                   !0, 'fantastic'
    6     5        ASSIGN                                                   !1, 'my+value'
    8     6        ROPE_INIT                                     3  ~8      'This+is+'
          7        FETCH_CONSTANT                                   ~5      'great'
          8        FETCH_R                      local               ~6      ~5
          9        ROPE_ADD                                      1  ~8      ~8, ~6
         10        ROPE_END                                      2  ~7      ~8, '%0A'
         11        ECHO                                                     ~7
    9    12        ROPE_INIT                                     3  ~13     'This+is+'
         13        FETCH_CONSTANT                                   ~10     'great'
         14        FETCH_R                      local               ~11     ~10
         15        ROPE_ADD                                      1  ~13     ~13, ~11
         16        ROPE_END                                      2  ~12     ~13, '%0A'
         17        ECHO                                                     ~12
   10    18        ROPE_INIT                                     3  ~18     'This+is+'
         19        FETCH_CONSTANT                                   ~15     'great'
         20        FETCH_R                      local               ~16     ~15
         21        ROPE_ADD                                      1  ~18     ~18, ~16
         22        ROPE_END                                      2  ~17     ~18, '%0A'
         23        ECHO                                                     ~17
   11    24        ROPE_INIT                                     3  ~21     'This+is+'
         25        ROPE_ADD                                      1  ~21     ~21, !0
         26        ROPE_END                                      2  ~20     ~21, '%0A'
         27        ECHO                                                     ~20
         28      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.07 ms | 1400 KiB | 15 Q