public function shardIdIn(int $uuid, bool $validate = true): int
    {
        $shard_id = ($uuid >> (64 - 2 - 16)) & 65535;

        if ($validate) {
            $this->validateShardId($shard_id);
        }
        return $shard_id;
    }
public function shardIdIn(int $uuid, bool $validate = true): int
    {
        $shard_id = ($uuid >> (64 - 2 - 16)) & 65535;

        if ($validate) {
            $this->validateShardId($shard_id);
        }
        return $shard_id;
    }
public function shardIdIn ( int $ uuid , bool $ validate = true ) : int { $ shard_id = ( $ uuid >> ( 64 - 2 - 16 ) ) & 65535 ; if ( $ validate ) { $ this -> validateShardId ( $ shard_id ) ; } return $ shard_id ; }
Shard ID from UUID64.

@since 150424 Initial release.

@param int  $uuid     Input UUID64 (64 bits signed max `9223372036854775807`).
@param bool $validate Validate the shard ID after extraction? Defaults to `true`.

@return int Shard ID from UUID64 (16 bits unsigned max `65535`).
Shard ID from UUID64 .