3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $manager = bindec('000010000000000000000000000000'); $roles = bindec('000011110000100100000000000000'); $isManager = ($roles & $manager) !== 0; var_dump($isManager); $roles = bindec('000001110000100100000000000000'); $isManager = ($roles & $manager) !== 0; var_dump($isManager);
based on 3uH8T
Output for 4.3.0 - 7.2.0
bool(true) bool(false)