# VariableAnalysis 3.0

A new major version of VariableAnalysis, a PHP\_CodeSniffer sniff that finds undefined and unused variables in PHP code.

Version 3.0 is a large refactor on top of PHPCSUtils. The release notes say it makes the sniff much faster and more accurate. It now needs PHP\_CodeSniffer 3.13.5 or later.

- Made by: [Payton Swick](https://github.com/sirbrillig)
- Shipped: 01/08/2026
- Date from: [release](https://github.com/sirbrillig/phpcs-variable-analysis/releases/tag/v3.0.0)
- Source: [github.com/sirbrillig/phpcs-variable-analysis](https://github.com/sirbrillig/phpcs-variable-analysis)
- Install: `composer require sirbrillig/phpcs-variable-analysis`
- Licence: BSD-2-Clause
- Stack: plain PHP
- Topics: Developer tools
- Checked: 06/11/2026
- Added: 06/11/2026

## Badge

Listed here? Add this badge to your README:

```markdown
[![Featured on phplives.dev](https://phplives.dev/badge.svg)](https://phplives.dev/entries/phpcs-variable-analysis-3-0/)
```

See more at [phplives.dev](https://phplives.dev)
