Zend certified PHP/Magento developer

During quarantine I got motivated to refactor a large project. Are there any static analyzers for PHP that can alert me of dead code? (Unused methods, scripts, etc.) Sort of like PurgeCSS for PHP