3v4l.org

run code in 300+ PHP versions simultaneously
<?php define("BAR",5); //define("FOO",TRUE+1); define("BAZ",BAR+10); //echo FOO; echo "BAZ: ",BAZ; const ALPHA = 1; const BETA = ALPHA + 1; echo "\nBETA: ",BETA;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/p9eBc
function name:  (null)
number of ops:  19
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                                                     'BAZ%3A+'
         11        FETCH_CONSTANT                                   ~4      'BAZ'
         12        ECHO                                                     ~4
    8    13        DECLARE_CONST                                            'ALPHA', 1
    9    14        DECLARE_CONST                                            'BETA', <const ast>
   10    15        ECHO                                                     '%0ABETA%3A+'
         16        FETCH_CONSTANT                                   ~5      'BETA'
         17        ECHO                                                     ~5
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.46 ms | 1394 KiB | 15 Q