alexia\mar\tests::getPHPVersion PHP Méthode

getPHPVersion() public méthode

Return the version of PHP for the selected binary.
public getPHPVersion ( ) : mixed
Résultat mixed Version string or false on error.
    public function getPHPVersion()
    {
        $binary = $this->getPHPBinaryPath();
        $version = exec($binary . ' -r "echo(phpversion());" 2>&1', $version);
        $version = trim($version);
        return version_compare($version, "7.0.0-dev", ">=");
    }