public function checkPhpVersion() {
		$phpVesion = $this->_modelConfigInstaller->getPhpVersionConfig();
		if (empty($phpVesion)) {
			return null;
		}

		$result = true;
		foreach ($phpVesion as $phpVesionItem) {
			if (!is_array($phpVesionItem)) {
				continue;
			}

			$phpVesionItem += ['', null];
			list($version, $operator) = $phpVesionItem;
			if (empty($operator)) {
				$operator = '==';
			}

			$checkResult = false;
			if (!empty($version)) {
				$checkResult = version_compare(PHP_VERSION, $version, $operator);
			}
			if (!$checkResult) {
				$result = false;
			}
		}

		return $result;
	}
public function checkPhpVersion() {
		$phpVesion = $this->_modelConfigInstaller->getPhpVersionConfig();
		if (empty($phpVesion)) {
			return null;
		}

		$result = true;
		foreach ($phpVesion as $phpVesionItem) {
			if (!is_array($phpVesionItem)) {
				continue;
			}

			$phpVesionItem += ['', null];
			list($version, $operator) = $phpVesionItem;
			if (empty($operator)) {
				$operator = '==';
			}

			$checkResult = false;
			if (!empty($version)) {
				$checkResult = version_compare(PHP_VERSION, $version, $operator);
			}
			if (!$checkResult) {
				$result = false;
			}
		}

		return $result;
	}
public function checkPhpVersion ( ) { $ phpVesion = $ this -> _modelConfigInstaller -> getPhpVersionConfig ( ) ; if ( empty ( $ phpVesion ) ) { return null ; } $ result = true ; foreach ( $ phpVesion as $ phpVesionItem ) { if ( ! is_array ( $ phpVesionItem ) ) { continue ; } $ phpVesionItem += [ '' , null ] ; list ( $ version , $ operator ) = $ phpVesionItem ; if ( empty ( $ operator ) ) { $ operator = '==' ; } $ checkResult = false ; if ( ! empty ( $ version ) ) { $ checkResult = version_compare ( PHP_VERSION , $ version , $ operator ) ; } if ( ! $ checkResult ) { $ result = false ; } } return $ result ; }
Check version of PHP

@return null|bool Return Null, if checking is not configured.
True, if PHP version is compatible. False otherwise.
Check version of PHP