public function getEnvPhpVersion()
    {
        /** @var EngineType $engine */
        $engine = $this->getEngineInstance();
        $instance = $engine->getServiceInstanceByType('php');

        if (empty($instance)) {
            throw new \RuntimeException(
                'No php service has been found.'
            );
        }
        $service = $instance[0];

        return $service->getVersion();
    }
public function getEnvPhpVersion()
    {
        /** @var EngineType $engine */
        $engine = $this->getEngineInstance();
        $instance = $engine->getServiceInstanceByType('php');

        if (empty($instance)) {
            throw new \RuntimeException(
                'No php service has been found.'
            );
        }
        $service = $instance[0];

        return $service->getVersion();
    }
public function getEnvPhpVersion ( ) { /** @var EngineType $engine */ $ engine = $ this -> getEngineInstance ( ) ; $ instance = $ engine -> getServiceInstanceByType ( 'php' ) ; if ( empty ( $ instance ) ) { throw new \ RuntimeException ( 'No php service has been found.' ) ; } $ service = $ instance [ 0 ] ; return $ service -> getVersion ( ) ; }
Get environment PHP version.

@return string
The PHP version defined by the environment engine service.
Get environment PHP version .