3v4l.org

run code in 500+ 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/i2kOP
function name:  (null)
number of ops:  27
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        ECHO                                                         'This+is+'
          7        FETCH_CONSTANT                                       ~5      'great'
          8        FETCH_R                          local               ~6      ~5
          9        ECHO                                                         ~6
         10        ECHO                                                         '%0A'
    9    11        ECHO                                                         'This+is+'
         12        FETCH_CONSTANT                                       ~7      'great'
         13        FETCH_R                          local               ~8      ~7
         14        ECHO                                                         ~8
         15        ECHO                                                         '%0A'
   10    16        ECHO                                                         'This+is+'
         17        FETCH_CONSTANT                                       ~9      'great'
         18        FETCH_R                          local               ~10     ~9
         19        ECHO                                                         ~10
         20        ECHO                                                         '%0A'
   11    21        ECHO                                                         'This+is+'
         22        FETCH_CONSTANT                                       ~11     'great'
         23        FETCH_R                          local               ~12     ~11
         24        ECHO                                                         ~12
         25        ECHO                                                         '%0A'
         26      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
158.86 ms | 2301 KiB | 14 Q