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.
See: phpstan/phpstan#8353 phpstan/phpstan#8146
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:
php parse.php
@bcremer Happy to hear that!
PHPStan will soon get an option that displays the slow files too.