Psalm review
A free PHP checker for teams that want type inference, taint analysis, and dead-code detection.
Reviewed by iTechGuides Editors · Editorial team · Updated Dec 2026
For PHP developers who want feedback before they run their application, Psalm checks source code for type inconsistencies, potentially unsafe data flows, and unused code. The free, open-source analyzer works with both declared types and types it infers from the code. That makes it useful when a project has a mix of explicit type declarations and code where types have to be inferred. Its scope suits teams that want correctness, maintainability, and security checks from the same PHP analyzer.
Taint analysis gives Psalm a role beyond type checking. A value can have the expected type and still be unsafe in the context where the application uses it. Taint analysis helps trace that flow, while unused and dead-code detection flags code that may be worth removing. In an existing project, a generated baseline can suppress known issues so developers can focus on new findings without fixing the entire backlog first. Configurable reporting levels give teams control over which issues to report.
Psalm runs from the command line in an environment you manage and can be included in automated development workflows. That gives teams a way to make the same checks part of their regular development process. Pick Psalm if PHP is your focus and you want to check data flows and unused code alongside types. If the goal is to standardize on one analyzer across multiple languages, look for broader language coverage.
Psalm pros and cons
- Where it wins
- Checks declared and inferred PHP types without running the application.
- Traces potentially unsafe data flows with taint analysis.
- Suppresses existing findings with a generated baseline.
- Where it doesn't
- Analysis is limited to PHP.
- Teams run the analyzer in their own environment.
- Support is documentation-based.
Psalm fact sheet, pricing and score →
Advertiser disclosure: iTechGuides is reader-supported. Vendors can pay for top positions in our rankings and for a place on other products' pages, and we may earn a commission when you click some links. Bought places stand at the number bought; this page and our disclosure say so. Paying vendors may get a fuller, more detailed review from our editors, and that review can change their score. How we rank.
Last updated · How we research and update