3v4l.org

run code in 300+ PHP versions simultaneously
<?php define('CF_GOD', 1 << 2); // may issue #god commands define('CF_PLAYER', 1 << 3); // is a player define('CF_STAFF', 1 << 4); // member of the staff define('CF_INVISIBLE', 1 << 5); // character is completely invisible define('CF_GENDER', 1 << 14 | 1 << 15); // Determine Gender define('CF_WARRIOR', 1 << 16); // is warrior - or seyan, if warrior and mage are set define('CF_MAGE', 1 << 17); // is mage - or seyan, if warrior and mage are set define('CF_ARCH', 1 << 18); // is arch-XXX define('CF_LQMASTER', 1 << 52); // may host LQs define('CF_NOWHO', 1 << 56); // invisible to /who define('CF_WON', 1 << 57); // character won the game (ie killed islena $bitfield = 8470543; $is_god = (bool) $bitfield & CF_GOD; $is_staff = (bool) $bitfield & CF_STAFF; $is_gender = (bool) $bitfield & CF_GENDER; $is_class = (bool) $bitfield & CF_CLASS; $is_arch = (bool) $bitfield & CF_ARCH; $is_invisible = (bool) $bitfield & CF_INVISIBLE; $is_lqmaster = (bool) $bitfield & CF_LQMASTER; $is_invisible = (bool) $bitfield & CF_INVISIBLE; $is_sirlady = (bool) $bitfield & CF_WON; echo $is_god; echo $is_gender; echo $is_class;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rmg3l
function name:  (null)
number of ops:  85
compiled vars:  !0 = $bitfield, !1 = $is_god, !2 = $is_staff, !3 = $is_gender, !4 = $is_class, !5 = $is_arch, !6 = $is_invisible, !7 = $is_lqmaster, !8 = $is_sirlady
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'define'
          1        SEND_VAL                                                 'CF_GOD'
          2        SEND_VAL                                                 4
          3        DO_ICALL                                                 
    3     4        INIT_FCALL                                               'define'
          5        SEND_VAL                                                 'CF_PLAYER'
          6        SEND_VAL                                                 8
          7        DO_ICALL                                                 
    4     8        INIT_FCALL                                               'define'
          9        SEND_VAL                                                 'CF_STAFF'
         10        SEND_VAL                                                 16
         11        DO_ICALL                                                 
    5    12        INIT_FCALL                                               'define'
         13        SEND_VAL                                                 'CF_INVISIBLE'
         14        SEND_VAL                                                 32
         15        DO_ICALL                                                 
    6    16        INIT_FCALL                                               'define'
         17        SEND_VAL                                                 'CF_GENDER'
         18        SEND_VAL                                                 49152
         19        DO_ICALL                                                 
    7    20        INIT_FCALL                                               'define'
         21        SEND_VAL                                                 'CF_WARRIOR'
         22        SEND_VAL                                                 65536
         23        DO_ICALL                                                 
    8    24        INIT_FCALL                                               'define'
         25        SEND_VAL                                                 'CF_MAGE'
         26        SEND_VAL                                                 131072
         27        DO_ICALL                                                 
    9    28        INIT_FCALL                                               'define'
         29        SEND_VAL                                                 'CF_ARCH'
         30        SEND_VAL                                                 262144
         31        DO_ICALL                                                 
   10    32        INIT_FCALL                                               'define'
         33        SEND_VAL                                                 'CF_LQMASTER'
         34        SEND_VAL                                                 4503599627370496
         35        DO_ICALL                                                 
   11    36        INIT_FCALL                                               'define'
         37        SEND_VAL                                                 'CF_NOWHO'
         38        SEND_VAL                                                 72057594037927936
         39        DO_ICALL                                                 
   12    40        INIT_FCALL                                               'define'
         41        SEND_VAL                                                 'CF_WON'
         42        SEND_VAL                                                 144115188075855872
         43        DO_ICALL                                                 
   14    44        ASSIGN                                                   !0, 8470543
   16    45        BOOL                                             ~21     !0
         46        FETCH_CONSTANT                                   ~22     'CF_GOD'
         47        BW_AND                                           ~23     ~21, ~22
         48        ASSIGN                                                   !1, ~23
   17    49        BOOL                                             ~25     !0
         50        FETCH_CONSTANT                                   ~26     'CF_STAFF'
         51        BW_AND                                           ~27     ~25, ~26
         52        ASSIGN                                                   !2, ~27
   18    53        BOOL                                             ~29     !0
         54        FETCH_CONSTANT                                   ~30     'CF_GENDER'
         55        BW_AND                                           ~31     ~29, ~30
         56        ASSIGN                                                   !3, ~31
   19    57        BOOL                                             ~33     !0
         58        FETCH_CONSTANT                                   ~34     'CF_CLASS'
         59        BW_AND                                           ~35     ~33, ~34
         60        ASSIGN                                                   !4, ~35
   20    61        BOOL                                             ~37     !0
         62        FETCH_CONSTANT                                   ~38     'CF_ARCH'
         63        BW_AND                                           ~39     ~37, ~38
         64        ASSIGN                                                   !5, ~39
   21    65        BOOL                                             ~41     !0
         66        FETCH_CONSTANT                                   ~42     'CF_INVISIBLE'
         67        BW_AND                                           ~43     ~41, ~42
         68        ASSIGN                                                   !6, ~43
   22    69        BOOL                                             ~45     !0
         70        FETCH_CONSTANT                                   ~46     'CF_LQMASTER'
         71        BW_AND                                           ~47     ~45, ~46
         72        ASSIGN                                                   !7, ~47
   23    73        BOOL                                             ~49     !0
         74        FETCH_CONSTANT                                   ~50     'CF_INVISIBLE'
         75        BW_AND                                           ~51     ~49, ~50
         76        ASSIGN                                                   !6, ~51
   24    77        BOOL                                             ~53     !0
         78        FETCH_CONSTANT                                   ~54     'CF_WON'
         79        BW_AND                                           ~55     ~53, ~54
         80        ASSIGN                                                   !8, ~55
   26    81        ECHO                                                     !1
   27    82        ECHO                                                     !3
   28    83        ECHO                                                     !4
         84      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.65 ms | 1400 KiB | 15 Q