3v4l.org

run code in 300+ PHP versions simultaneously
<?php const DISABLED = 0; const DEBUG = 1; const INFO = 2; const WARNING = 4; const ERROR = 8; const ALL = 15; echo 3 & DEBUG; echo 3 & INFO; echo 3 & WARNING;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/BX3Oj
function name:  (null)
number of ops:  16
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   DECLARE_CONST                                            'DISABLED', 0
    3     1        DECLARE_CONST                                            'DEBUG', 1
    4     2        DECLARE_CONST                                            'INFO', 2
    5     3        DECLARE_CONST                                            'WARNING', 4
    6     4        DECLARE_CONST                                            'ERROR', 8
    7     5        DECLARE_CONST                                            'ALL', 15
   10     6        FETCH_CONSTANT                                   ~0      'DEBUG'
          7        BW_AND                                           ~1      ~0, 3
          8        ECHO                                                     ~1
   11     9        FETCH_CONSTANT                                   ~2      'INFO'
         10        BW_AND                                           ~3      ~2, 3
         11        ECHO                                                     ~3
   12    12        FETCH_CONSTANT                                   ~4      'WARNING'
         13        BW_AND                                           ~5      ~4, 3
         14        ECHO                                                     ~5
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.58 ms | 1393 KiB | 13 Q