Is there any tools to check for dead code for PHP5? Something like
- Scan classes with Reflection
- Follow "normal" code with
token_get_all()
and find variables with token T_NEW and then scan for method calls. - Output something like
classname (count of new declarations) methods (count of calls)