Infection
Infection: A free, open-source PHP mutation testing framework with CI quality gates. Ranked #4 of 25 in Mutation Testing Tools by our editors (7.4/10); pricing: Free plan; best for PHP teams with CI quality gates.
At a glance
- Editor score7.4 / 10
- PricingFree plan
- Best forPHP teams with CI quality gates
- Free planYes
- Paid fromNone
- Mutation quality gateYes
- Facts checked20 Sep 2026

Where it wins
- Broad PHP mutators with configurable profiles and custom mutators
- Parallel execution, coverage reuse, and changed-line filtering
- CI thresholds with HTML, text, JSON, GitHub, and GitLab reports
Where it doesn't
- Supports PHP rather than multiple programming languages
- No AI features are included
- Mutation analysis is centered on supported PHP test frameworks
Our verdict on Infection
Infection is an open-source mutation testing framework for PHP teams that want to measure whether their tests detect code changes. It uses AST-based source-code mutation, runs relevant test cases, and reports killed, escaped, errored, and timed-out mutants. PHPUnit, PhpSpec, Codeception, and Testo are supported, making it a focused option for PHP projects with established automated test suites. The tool is free and distributed under the BSD-3-Clause license, with local installation available through PHAR, Composer, Phive, Git, or Homebrew.
Its strongest fit is continuous integration quality control. Teams can set mutation-score thresholds, reuse existing coverage reports, and filter analysis to changed lines or Git diffs. Parallel execution with configurable threads can support larger mutation runs, while HTML, text, JSON, GitHub, and GitLab reports provide different ways to review results or publish them in development workflows. Optional PHPStan and Mago integration adds static-analysis support alongside mutation testing. These capabilities give PHP teams several ways to control scope and connect results to existing quality gates.
Infection also offers a broad set of configurable mutators, including arithmetic, boolean, cast, conditional boundary, equality, function signature, nullify, number, operator, regex, removal, return value, visibility, and unwrap mutations. Custom mutators allow teams to tailor the analysis further. The trade-off is its narrow language focus: projects outside PHP need a different tool, and teams looking for AI features will not find them here. Infection is a strong choice for PHP teams that want open-source mutation analysis and measurable CI thresholds, but less suitable for polyglot organizations seeking one mutation-testing system across languages.
Infection pricing
Infection fact sheet
| Free plan | Yes |
|---|---|
| Paid from | None |
| Supported languages | PHP |
| Test frameworks | PHPUnit, PhpSpec, Codeception, Testo |
| Incremental analysis | Yes |
| Parallel execution | Yes |
| Surviving mutant reports | Yes |
| Mutation quality gate | Yes |
| Mutation operators | Arithmetic, boolean, cast, conditional boundary, conditional negotiation, equality, function signature, nullify, number, operator, regex, removal, return value, visibility, and unwrap mutators |
| Deployment | Self-hosted |
| Support | Community, Docs |
| Built for | Solo, Small business, Mid-market, Enterprise (editorial estimate) |
| Integrations | 6 integrations: PHPUnit, PhpSpec, Codeception, Testo, PHPStan, Mago |
| Pricing | Free plan |
| Website | infection.github.io |
| Facts checked | 20 Sep 2026 |
Infection integrations
Infection lists 6 integrations on its own site.
- PHPUnit
- PhpSpec
- Codeception
- Testo
- PHPStan
- Mago
Alternatives to Infection
- ArcMutateA broad JVM mutation testing suite with CI workflows, quality gates and a free plan.9.8
- PITA mature open-source choice for Java teams that need configurable mutation analysis.8.2
- Stryker MutatorA broad, open-source mutation testing toolkit with strong CI and reporting support.7.7
See all Infection alternatives →
Infection vs the competition
- Infection vs ArcMutate
- Infection vs PIT
- Infection vs Stryker Mutator
- Infection vs Cosmic Ray
- Infection vs Dextool Mutate
- Infection vs Mutatest
Compare Infection with any tool side by side →
Used Infection? Be the first to review it
The editor score above is our own research. What this page doesn't have yet is a reader's view — what you used Infection for, what worked and what didn't. No stars are seeded and no review is paid for; an editor reads every one before it appears.
Write a reviewTwo minutes · verified accounts only · read by an editor before it appears
Featured on iTechGuides
Infection is listed in our Mutation Testing Tools directory. Add the badge to your site — it links back to this page.
<a href="https://www.itechguides.com/products/infection/"><img src="https://www.itechguides.com/best/badge/infection.svg" alt="Featured on iTechGuides" width="230" height="46"></a>
Reviewed by iTechGuides Editors · Editorial team · Updated Sep 2026
Advertiser disclosure: iTechGuides is reader-supported. We may earn a commission when you click some links. How we rank.
Last updated · How we research and update



