Bigtable/src/DataUtil.php
public static function byteStringToInt($bytes)
    {
        if (!self::isSupported()) {
            throw new \RuntimeException('This utility is only supported on 64 bit machines with PHP version > 5.5.');
        }
        if (self::isSystemLittleEndian()) {
            $bytes = strrev($bytes);
        }
        return unpack("q", $bytes)[1];
    }
public static function byteStringToInt($bytes)
    {
        if (!self::isSupported()) {
            throw new \RuntimeException('This utility is only supported on 64 bit machines with PHP version > 5.5.');
        }
        if (self::isSystemLittleEndian()) {
            $bytes = strrev($bytes);
        }
        return unpack("q", $bytes)[1];
    }
public static function byteStringToInt ( $ bytes ) { if ( ! self :: isSupported ( ) ) { throw new \ RuntimeException ( 'This utility is only supported on 64 bit machines with PHP version > 5.5.' ) ; } if ( self :: isSystemLittleEndian ( ) ) { $ bytes = strrev ( $ bytes ) ; } return unpack ( "q" , $ bytes ) [ 1 ] ; }
Converts a 64-bit big-endian signed integer represented as a byte string to an integer.

@param string $bytes String of bytes to convert.
@return int Integer value of the string bytes.
@throws \RuntimeException If called on PHP version <= 5.5.
Converts a 64 - bit big - endian signed integer represented as a byte string to an integer .