Paradox/toolbox/Query.php
public function explain($query, array $parameters = array())
    {
        $data = array(
                'query' => $query,
                'bindVars' => $parameters
        );

        $statement = new Statement($this->_toolbox->getConnection(), $data);

        try {
            $result = $statement->explain();

            return $result['plan'];
        } catch (\Exception $e) {
            $normalised = $this->_toolbox->normaliseDriverExceptions($e);
            throw new QueryException($normalised['message'], $normalised['code']);
        }
    }
public function explain($query, array $parameters = array())
    {
        $data = array(
                'query' => $query,
                'bindVars' => $parameters
        );

        $statement = new Statement($this->_toolbox->getConnection(), $data);

        try {
            $result = $statement->explain();

            return $result['plan'];
        } catch (\Exception $e) {
            $normalised = $this->_toolbox->normaliseDriverExceptions($e);
            throw new QueryException($normalised['message'], $normalised['code']);
        }
    }
Returns the execution plan for a query. This will not execute the query.
@param  string         $query      The AQL query to run.
@param  array          $parameters An optional associative array containing parameters to bind to the query.
@throws QueryException
@return array