3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $bitmask = bindec('0101'); printf("%04b\n", $bitmask); $bitmask |= bindec('0111'); printf("%04b\n", $bitmask); ?>
Output for 4.3.0 - 7.3.0rc4
0101 0111