Timed my pre-commit gates on 5 staged files: ECS 0.23 s, PHPStan 1.2 s. So ECS runs first, no point waiting for analysis to learn a bracket is off. Infection goes last: slowest gate, only useful once the tests are stable.
https://blog.tony-stark.xyz/blog/2026-10-phpstan-first/
BlogPHPStan First: The Gate Order I Use for AI-Written PHP Code | BlogWhich quality gate to add first when an AI agent writes your PHP: PHPStan, then ECS and Rector, tests, architecture rules, mutation testing.