How to find the files that are the slowest to analyze with PHPStan?
For us, PHPStan became a bit slower with every release. We have a very large codebase with 10.000+ classes. There seem to be a few known issues related to big arrays.
To understand which files are problematic we run the following command:
vendor/bin/phpstan analyze --memory-limit=-1 --debug -vvv | tee phpstan.log
Then we run: