public static function isBigEndian()
    {
        if (self::$isBigEndian !== null) {
            return self::$isBigEndian;
        }

        list(, $result)    = unpack('L', pack('V', 1));
        self::$isBigEndian = $result !== 1;

        return self::$isBigEndian;
    }