3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.59 ms | 1394 KiB | 15 Q