3v4l.org

run code in 300+ PHP versions simultaneously
<?php define("A", 42); const B = 42; var_dump(A, B);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1r6gk
function name:  (null)
number of ops:  12
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'define'
          1        SEND_VAL                                                 'A'
          2        SEND_VAL                                                 42
          3        DO_ICALL                                                 
    4     4        DECLARE_CONST                                            'B', 42
    6     5        INIT_FCALL                                               'var_dump'
          6        FETCH_CONSTANT                                   ~1      'A'
          7        SEND_VAL                                                 ~1
          8        FETCH_CONSTANT                                   ~2      'B'
          9        SEND_VAL                                                 ~2
         10        DO_ICALL                                                 
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.37 ms | 1086 KiB | 15 Q