CRC-24 implementation in PHP