3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $bitPointer = 2; $length = 1; $mask = (0xff >> (8 - $length)) << (8 - $bitPointer); printf("%08b", $mask);
Output for 4.3.0 - 7.1.10
01000000