I am trying to find a static analysis tool that is able to output every object + method that my PHP application runs through. I am currently using xdebug, which does its work but is a runtime analysis tool. And ignores a lot of paths, because they are not run through.
I am trying to achieve something like this:
class C
{
public function __construct() {
$this->m1(true);
}
public function m1($p) {
if ($p === true) {
$this->m2();
} else {
$this->m3();
}
}
private function m2() {
// do stuff
}
private function m3() {
// do other stuff
}
}
Which would output something like this:
** rest of application **
-> c->__construct()
-> c->m1()
-> c->m2()
-> c->m3()
** rest of application **
Does anyone know of such a tool?