3v4l.org

run code in 300+ PHP versions simultaneously
<?php $bitPointer = 0; $length = 1; $mask = (0xff >> (8 - $length)) << (8 - $bitPointer); printf("%08b", $mask);

preferences:
36.55 ms | 402 KiB | 5 Q