source/Core/SystemRequirements.php
public function checkPhpVersion()
    {
        $requirementFits = null;

        $minimalRequiredVersion = '7.0.0';
        $minimalRecommendedVersion = '7.0.0';
        $maximalRecommendedVersion = '7.1.9999';

        $installedPhpVersion = $this->getPhpVersion();

        if (version_compare($installedPhpVersion, $minimalRequiredVersion, '<')) {
            $requirementFits = static::MODULE_STATUS_BLOCKS_SETUP;
        }

        if (is_null($requirementFits) &&
            version_compare($installedPhpVersion, $minimalRecommendedVersion, '>=')
            && version_compare($installedPhpVersion, $maximalRecommendedVersion, '<=')) {
            $requirementFits = static::MODULE_STATUS_OK;
        }

        if (is_null($requirementFits)) {
            $requirementFits = static::MODULE_STATUS_FITS_MINIMUM_REQUIREMENTS;
        }

        return $requirementFits;
    }
public function checkPhpVersion()
    {
        $requirementFits = null;

        $minimalRequiredVersion = '7.0.0';
        $minimalRecommendedVersion = '7.0.0';
        $maximalRecommendedVersion = '7.1.9999';

        $installedPhpVersion = $this->getPhpVersion();

        if (version_compare($installedPhpVersion, $minimalRequiredVersion, '<')) {
            $requirementFits = static::MODULE_STATUS_BLOCKS_SETUP;
        }

        if (is_null($requirementFits) &&
            version_compare($installedPhpVersion, $minimalRecommendedVersion, '>=')
            && version_compare($installedPhpVersion, $maximalRecommendedVersion, '<=')) {
            $requirementFits = static::MODULE_STATUS_OK;
        }

        if (is_null($requirementFits)) {
            $requirementFits = static::MODULE_STATUS_FITS_MINIMUM_REQUIREMENTS;
        }

        return $requirementFits;
    }
public function checkPhpVersion ( ) { $ requirementFits = null ; $ minimalRequiredVersion = '7.0.0' ; $ minimalRecommendedVersion = '7.0.0' ; $ maximalRecommendedVersion = '7.1.9999' ; $ installedPhpVersion = $ this -> getPhpVersion ( ) ; if ( version_compare ( $ installedPhpVersion , $ minimalRequiredVersion , '<' ) ) { $ requirementFits = static :: MODULE_STATUS_BLOCKS_SETUP ; } if ( is_null ( $ requirementFits ) && version_compare ( $ installedPhpVersion , $ minimalRecommendedVersion , '>=' ) && version_compare ( $ installedPhpVersion , $ maximalRecommendedVersion , '<=' ) ) { $ requirementFits = static :: MODULE_STATUS_OK ; } if ( is_null ( $ requirementFits ) ) { $ requirementFits = static :: MODULE_STATUS_FITS_MINIMUM_REQUIREMENTS ; } return $ requirementFits ; }
Checks supported PHP versions.

@return integer
Checks supported PHP versions .