3v4l.org

run code in 300+ PHP versions simultaneously
<?php define("BAR",5); define("BAZ",BAR+10); echo "BAZ: ", BAZ; // 15 const BARO = 1; const BAZO = BARO + 1; echo "\nBAZO: ",BAZO; // 2
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/UiUBt
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                                                 
    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
    6    13        DECLARE_CONST                                            'BARO', 1
    7    14        DECLARE_CONST                                            'BAZO', <const ast>
    8    15        ECHO                                                     '%0ABAZO%3A+'
         16        FETCH_CONSTANT                                   ~5      'BAZO'
         17        ECHO                                                     ~5
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.51 ms | 1386 KiB | 15 Q