3v4l.org

run code in 300+ PHP versions simultaneously
<?php define("BAR",5); //define("FOO",TRUE+1); define("BAZ",BAR+10); //echo FOO; echo "<BR>\n",BAZ; const ALPHA = 1; const BETA = ALPHA + 1; echo BETA;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZAsUP
function name:  (null)
number of ops:  18
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'define'
          1        SEND_VAL                                                 'BAR'
          2        SEND_VAL                                                 5
          3        DO_ICALL                                                 
    4     4        INIT_FCALL                                               'define'
          5        SEND_VAL                                                 'BAZ'
          6        FETCH_CONSTANT                                   ~1      'BAR'
          7        ADD                                              ~2      ~1, 10
          8        SEND_VAL                                                 ~2
          9        DO_ICALL                                                 
    6    10        ECHO                                                     '%3CBR%3E%0A'
         11        FETCH_CONSTANT                                   ~4      'BAZ'
         12        ECHO                                                     ~4
    8    13        DECLARE_CONST                                            'ALPHA', 1
    9    14        DECLARE_CONST                                            'BETA', <const ast>
   10    15        FETCH_CONSTANT                                   ~5      'BETA'
         16        ECHO                                                     ~5
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.41 ms | 1394 KiB | 15 Q