3v4l.org

run code in 300+ PHP versions simultaneously
<?php define("BAR",5); define("BAZ",BAR+10); echo "BAZ: ",BAZ; /* const BARO = 1; const BAZO = BARO + 1; echo "\nBAZ: ",BAZO; */
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lXape
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                                                 
    3     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                                                 
    4    10        ECHO                                                     'BAZ%3A+'
         11        FETCH_CONSTANT                                   ~4      'BAZ'
         12        ECHO                                                     ~4
    9    13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.28 ms | 1394 KiB | 15 Q