CacheTool\Proxy\PhpProxy::phpversion PHP Method

phpversion() public method

Returns a string containing the version of the currently running PHP parser or extension.
public phpversion ( string $extension = null ) : string
$extension string An optional extension name
return string
    public function phpversion($extension = null)
    {
        $code = new Code();
        $code->addStatement(sprintf("return phpversion(%s);", var_export($extension, true)));
        return $this->adapter->run($code);
    }