src/Binary/Platform/BigEndian.php
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;
    }
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;
    }
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 ; }
Check if the current architecture is Big Endian.

@return bool
Check if the current architecture is Big Endian .