SELECT php('md5', sql) from sqlite_master
The php function has takes the name of a php function to call as the first
parameter; each additional parameter is passed on to the function, much like
call_user_func().
You can call both built-in and script-defined functions in this way.