public function phpversion($extension = null)
    {
        $code = new Code();
        $code->addStatement(sprintf(
            "return phpversion(%s);",
            var_export($extension, true)
        ));

        return $this->adapter->run($code);
    }
public function phpversion($extension = null)
    {
        $code = new Code();
        $code->addStatement(sprintf(
            "return phpversion(%s);",
            var_export($extension, true)
        ));

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

@param  string $extension An optional extension name
@return string
Returns a string containing the version of the currently running PHP parser or extension .