3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function getBitmask($value, $bitvalue){ return (decbin($value) & $bitvalue); } function isBidMarkedDeleted($value) { if (getBitmask($value, 8) == 8) { return true; } return false; } function isAskMarkedDeleted($value) { if (getBitmask($value, 4) == 4) { return true; } return false; } var_dump(isBidMarkedDeleted(11136)); var_dump(isAskMarkedDeleted(896));
Output for 4.3.0 - 7.1.0
bool(false) bool(false)