Suggestions appear as you type. Use the up and down arrows to choose one and Enter to open it.

Head-to-head · Static Type Checkers

Hack typechecker vs PHPStan

  • Updated Dec 2026
  • Both researched from official sources
  • 5 checks side by side
Higher score Hack typechecker #3 in Static Type Checkers 9.0/10 Open source ✓ 4 of 4 features Visit Hack docs
PHPStan #5 in Static Type Checkers 8.8/10 Free plan · 30-day trial Free planFree trial✓ 1 of 4 features Visit PHPStan

Hack typechecker leads on 0 checks, PHPStan on 0, and 5 are even. Who comes out ahead on the 5 yes/no, price and count checks where we have data for both products. The editor score weighs everything else too.

Our verdict

  • Highest scoreHack typechecker · 9.0/10
  • Free planonly PHPStan
  • Free trialonly PHPStan
  • Most featuresHack typechecker · 4 of 4

Hack typechecker scores higher on our rubric for static type checkers: 9.0 against 8.8 out of 10; our editors rank them #3 and #5.

Hack typechecker is the better fit for hack projects requiring IDE and CI checking. PHPStan is the better fit for PHP teams needing configurable, CI-ready analysis.

  • Hack typechecker fits best

    Hack projects requiring IDE and CI checking

  • PHPStan fits best

    PHP teams needing configurable, CI-ready analysis

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.

Side by side

Feature Hack typechecker 9.0/10 Visit ↗ PHPStan 8.8/10 Visit ↗
At a glance
Editor score 9.0 8.8
Ranking #3 in Static Type Checkers #5 in Static Type Checkers
Best for Hack projects requiring IDE and CI checking PHP teams needing configurable, CI-ready analysis
Pricing model Free Free plan + paid
Starting price Open source Free plan · 30-day trial
Free plan Not checked yet ✓ (best)
Free trial — 30 days
Deployment Desktop Self-hosted
Support Community, Docs Docs, Community
Integrations 2 integrations 8 integrations
Built for Solo, Small business, Mid-market, Enterprise Solo, Small business, Mid-market, Enterprise
Features Hack typechecker 4/4 · PHPStan 1/4
IDE plugins ✓ (best) Not checked yet
CI/CD integration ✓ ✓
Incremental analysis ✓ (best) Not checked yet
Strictness controls ✓ (best) Not checked yet
Specs
Supported languages Hack Not checked yet
Analysis scope Project Not checked yet
License model Open_source Not checked yet
Our review
Pros
  • Incremental rechecks update results as Hack files change
  • Type inference and nullable narrowing catch unsafe operations
  • CLI, editor diagnostics and CI workflows cover local to automated checks
  • Checks native PHP types and PHPDoc and can infer types
  • Rule levels 0 through 10 and baselines support gradual adoption
  • CI output formats for GitHub Actions, GitLab, and TeamCity
Cons
  • Targets Hack projects rooted in a `.hhconfig` file
  • Linux desktop deployment limits platform choices
  • Editor diagnostics depend on compatible Hack language-server integrations
  • Requires PHP 7.4 or later to run
  • Self-hosted deployment leaves setup to your team
  • Browser UI and continuous analysis require the paid PHPStan Pro add-on
Our verdict

Meta’s Hack typechecker is a static analysis tool for developers writing Hack applications for HHVM. It checks Hack source without running the application, making it suitable for solo developers and teams that want project-wide validation…

Read the review →

PHPStan finds problems in PHP code without executing it. It checks native types and PHPDoc annotations, infers types, and flags issues such as unknown symbols, invalid arguments, and dead code. It suits PHP developers who want feedback on…

Read the review →
  1. Hack typecheckerStatic Type Checkers 9.0Open source
  2. PHPStanStatic Type Checkers 8.8Free plan · 30-day trial

Strengths and trade-offs

  • Hack typechecker — where it wins

    • Incremental rechecks update results as Hack files change
    • Type inference and nullable narrowing catch unsafe operations
    • CLI, editor diagnostics and CI workflows cover local to automated checks

    Where it doesn't

    • Targets Hack projects rooted in a `.hhconfig` file
    • Linux desktop deployment limits platform choices
    • Editor diagnostics depend on compatible Hack language-server integrations
  • PHPStan — where it wins

    • Checks native PHP types and PHPDoc and can infer types
    • Rule levels 0 through 10 and baselines support gradual adoption
    • CI output formats for GitHub Actions, GitLab, and TeamCity

    Where it doesn't

    • Requires PHP 7.4 or later to run
    • Self-hosted deployment leaves setup to your team
    • Browser UI and continuous analysis require the paid PHPStan Pro add-on
  • Hack typechecker9.0/10 · Open source

    A free, open-source Hack checker with incremental analysis, IDE diagnostics and CI support.

    Visit Hack docsFull verdict →
  • PHPStan8.8/10 · Free plan · 30-day trial

    A good fit for PHP teams that want to tighten type checks gradually and run them in CI.

    Visit PHPStanFull verdict →

Hack typechecker vs PHPStan: questions

Which is better for static type checkers, Hack typechecker or PHPStan?

Hack typechecker scores higher on our rubric for static type checkers: 9.0 against 8.8 out of 10; our editors rank them #3 and #5.

How do Hack typechecker and PHPStan compare?

All 5 checks we put side by side come out level: neither leads on any.

Where do Hack typechecker and PHPStan rank among static type checkers?

In our static type checkers ranking of 25, Hack typechecker is #3 and PHPStan is #5.

More comparisons

Reviewed by iTechGuides Editors · Editorial team · Updated Dec 2026

Last updated · How we research and update