Can we do Bits in PHP ?

Language: PHP
Get Num Leading Zeros (32bit int)