3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
175.36 ms | 1395 KiB | 17 Q