3v4l.org

run code in 300+ PHP versions simultaneously
<?php function containsPathnameOrSelfFlag($flags) { if ((($flags & CURRENT_AS_PATHNAME) == CURRENT_AS_PATHNAME) || (($flags & CURRENT_AS_SELF) == CURRENT_AS_SELF)) { return true; } return false; } var_dump(containsPathnameOrSelfFlag(CURRENT_MODE_MASK | CURRENT_AS_FILEINFO));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/BOhEG
function name:  (null)
number of ops:  10
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'containspathnameorselfflag'
          2        FETCH_CONSTANT                                   ~0      'CURRENT_MODE_MASK'
          3        FETCH_CONSTANT                                   ~1      'CURRENT_AS_FILEINFO'
          4        BW_OR                                            ~2      ~0, ~1
          5        SEND_VAL                                                 ~2
          6        DO_FCALL                                      0  $3      
          7        SEND_VAR                                                 $3
          8        DO_ICALL                                                 
          9      > RETURN                                                   1

Function containspathnameorselfflag:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 6, Position 2 = 11
Branch analysis from position: 6
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 13
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
filename:       /in/BOhEG
function name:  containsPathnameOrSelfFlag
number of ops:  15
compiled vars:  !0 = $flags
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
    3     1        FETCH_CONSTANT                                   ~1      'CURRENT_AS_PATHNAME'
          2        BW_AND                                           ~2      !0, ~1
          3        FETCH_CONSTANT                                   ~3      'CURRENT_AS_PATHNAME'
          4        IS_EQUAL                                         ~4      ~2, ~3
          5      > JMPNZ_EX                                         ~4      ~4, ->11
    4     6    >   FETCH_CONSTANT                                   ~5      'CURRENT_AS_SELF'
          7        BW_AND                                           ~6      !0, ~5
          8        FETCH_CONSTANT                                   ~7      'CURRENT_AS_SELF'
          9        IS_EQUAL                                         ~8      ~6, ~7
         10        BOOL                                             ~4      ~8
         11    > > JMPZ                                                     ~4, ->13
    5    12    > > RETURN                                                   <true>
    7    13    > > RETURN                                                   <false>
    8    14*     > RETURN                                                   null

End of function containspathnameorselfflag

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.35 ms | 1399 KiB | 16 Q