3v4l.org

run code in 300+ PHP versions simultaneously
<?php define('IN_DIR', 'Hi'); var_dump(IN_DIR); runkit_constant_redefine('IN_DIR', 'Hello'); var_dump(IN_DIR);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0eZHo
function name:  (null)
number of ops:  17
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'define'
          1        SEND_VAL                                                 'IN_DIR'
          2        SEND_VAL                                                 'Hi'
          3        DO_ICALL                                                 
    4     4        INIT_FCALL                                               'var_dump'
          5        FETCH_CONSTANT                                   ~1      'IN_DIR'
          6        SEND_VAL                                                 ~1
          7        DO_ICALL                                                 
    5     8        INIT_FCALL_BY_NAME                                       'runkit_constant_redefine'
          9        SEND_VAL_EX                                              'IN_DIR'
         10        SEND_VAL_EX                                              'Hello'
         11        DO_FCALL                                      0          
    6    12        INIT_FCALL                                               'var_dump'
         13        FETCH_CONSTANT                                   ~4      'IN_DIR'
         14        SEND_VAL                                                 ~4
         15        DO_ICALL                                                 
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.61 ms | 1394 KiB | 17 Q