3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $role1BitString = '1010'; $role2BitString = '1001'; $bitString = $role1BitString | $role2BitString; var_dump($bitString);
Output for 4.3.0 - 7.1.0
string(4) "1011"