3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?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));
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Notice: Use of undefined constant CURRENT_MODE_MASK - assumed 'CURRENT_MODE_MASK' in /in/BOhEG on line 9 Notice: Use of undefined constant CURRENT_AS_FILEINFO - assumed 'CURRENT_AS_FILEINFO' in /in/BOhEG on line 9 Notice: Use of undefined constant CURRENT_AS_PATHNAME - assumed 'CURRENT_AS_PATHNAME' in /in/BOhEG on line 3 Notice: Use of undefined constant CURRENT_AS_PATHNAME - assumed 'CURRENT_AS_PATHNAME' in /in/BOhEG on line 3 Notice: Use of undefined constant CURRENT_AS_SELF - assumed 'CURRENT_AS_SELF' in /in/BOhEG on line 4 Notice: Use of undefined constant CURRENT_AS_SELF - assumed 'CURRENT_AS_SELF' in /in/BOhEG on line 4 bool(false)