See http://gondwanaland.com/mlog/2005/03/05/bitcollider-php/.