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
I got an
undefined array key 'seconds'
error, fixed by adding this piece of code after thepreg_match
call :