3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
134.06 ms | 1432 KiB | 15 Q