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/81672
function name:  (null)
number of ops:  14
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
   11    13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.71 ms | 1394 KiB | 15 Q