UPDATE: resolved with a PHP parser. Let's reopen so that I can answer and accept.
I'm considering moving a PHP site to a new host. I've got a shared plan on both source and target hosts, therefore limited access to PHP customization.
Certain PHP function families (openssl, mcrypt, gd to name a few) may not be available on the new host. In order to match the API surface against the host, I'd like to statically list all PHP functions, both standalone and class methods, that my files reference.
There's very little dynamic code, so API references that are hidden behind eval
are not a concern. Static analysis would be sufficient.
I've tried phpCallGraph with -p and Doxygen - both produce incomplete coverage. Are there any other tools to that effect out there, please?
EDIT: the solution in this question is utterly inapplicable. It's called functions I'm after, not defined ones.
EDIT2: I would like to avoid retesting the whole site. Just the portions that depend on module provided functions.