src/BinaryUtils.php
public static function applyVersion($timeHi, $version)
    {
        $timeHi = hexdec($timeHi) & 0x0fff;
        $timeHi &= ~(0xf000);
        $timeHi |= $version << 12;

        return $timeHi;
    }
public static function applyVersion($timeHi, $version)
    {
        $timeHi = hexdec($timeHi) & 0x0fff;
        $timeHi &= ~(0xf000);
        $timeHi |= $version << 12;

        return $timeHi;
    }
public static function applyVersion ( $ timeHi , $ version ) { $ timeHi = hexdec ( $ timeHi ) & 0x0fff ; $ timeHi &= ~ ( 0xf000 ) ; $ timeHi |= $ version << 12 ; return $ timeHi ; }
Applies the RFC 4122 version number to the `time_hi_and_version` field

@param string $timeHi
@param integer $version
@return int The high field of the timestamp multiplexed with the version number
@link http://tools.ietf.org/html/rfc4122#section-4.1.3
Applies the RFC 4122 version number to the time_hi_and_version field