3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(E_ALL); define('great','my'); $great='fantastic'; $my='my value'; echo "This is ${great }<br/>\n";//output:my value echo "This is ${ great}<br/>\n";//output:my value echo "This is ${ great }<br/>\n";//output:my value echo "This is ${great}<br/>\n";//output:fantastic
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/jQXFc
function name:  (null)
number of ops:  32
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        ROPE_INIT                                     3  ~9      'This+is+'
         10        FETCH_CONSTANT                                   ~6      'great'
         11        FETCH_R                      local               ~7      ~6
         12        ROPE_ADD                                      1  ~9      ~9, ~7
         13        ROPE_END                                      2  ~8      ~9, '%3Cbr%2F%3E%0A'
         14        ECHO                                                     ~8
    9    15        ROPE_INIT                                     3  ~14     'This+is+'
         16        FETCH_CONSTANT                                   ~11     'great'
         17        FETCH_R                      local               ~12     ~11
         18        ROPE_ADD                                      1  ~14     ~14, ~12
         19        ROPE_END                                      2  ~13     ~14, '%3Cbr%2F%3E%0A'
         20        ECHO                                                     ~13
   10    21        ROPE_INIT                                     3  ~19     'This+is+'
         22        FETCH_CONSTANT                                   ~16     'great'
         23        FETCH_R                      local               ~17     ~16
         24        ROPE_ADD                                      1  ~19     ~19, ~17
         25        ROPE_END                                      2  ~18     ~19, '%3Cbr%2F%3E%0A'
         26        ECHO                                                     ~18
   11    27        ROPE_INIT                                     3  ~22     'This+is+'
         28        ROPE_ADD                                      1  ~22     ~22, !0
         29        ROPE_END                                      2  ~21     ~22, '%3Cbr%2F%3E%0A'
         30        ECHO                                                     ~21
         31      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.64 ms | 1396 KiB | 17 Q