3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.43 ms | 1394 KiB | 17 Q