3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.48 ms | 1398 KiB | 15 Q