Platform.php
public static function isWindows() : bool
    {
        // Return the cached result if it's already available.
        if (null !== static::$type) {
            return static::$type === self::TYPE_WINDOWS;
        }

        return static::getType() === self::TYPE_WINDOWS;
    }
public static function isWindows() : bool
    {
        // Return the cached result if it's already available.
        if (null !== static::$type) {
            return static::$type === self::TYPE_WINDOWS;
        }

        return static::getType() === self::TYPE_WINDOWS;
    }
public static function isWindows ( ) : bool { // Return the cached result if it's already available. if ( null !== static :: $ type ) { return static :: $ type === self :: TYPE_WINDOWS ; } return static :: getType ( ) === self :: TYPE_WINDOWS ; }
Checks whether PHP is running on a Windows platform

@return  bool    True when PHP is running on a Windows platform, false otherwise.
Checks whether PHP is running on a Windows platform