I don't know exactly what do you want to test but here are some tools which help during development:

  • PHPUnit for unit tests
  • CodeSniffer for coding standards
  • PHP Mess Detector for code quality

For testing a web application within your web browser automatically try Selenium.

Answer from Niki on Stack Overflow
🌐
BrowserStack
browserstack.com › home › guide › popular php software testing tools
10 Popular PHP Software Testing Tools | BrowserStack
May 30, 2025 - The best tool depends on your testing needs. For unit testing, PHPUnit is the most widely used. BrowserStack is ideal for running tests across real devices and browsers. For behavior-driven development, Behat or PHPSpec are excellent.
🌐
GitHub
github.com › collections › code-quality-in-php
Collection: Code Quality Checker Tools For PHP Projects · GitHub
A collection of code quality tools for PHP projects that you can use to analyze and fix your code in your local environments or in CI pipelines.
Discussions

Testing Tools for PHP - Stack Overflow
any good open source/commercial PHP testing tools available?? More on stackoverflow.com
🌐 stackoverflow.com
Moodle in English: moodle plugins and tools for code checking | Moodle.org
Besides that using Grunt does a similar job for JavaScript and appears to be watching my CSS files as well (albeit a bit strict for my taste on the css part). I don't know if you've set codechecker to act as a linter as well? There's many more tools that can check for clean coding principles in PHP ... More on moodle.org
🌐 moodle.org
December 7, 2023
Best way to test php code
https://phptherightway.com/#testing More on reddit.com
🌐 r/PHPhelp
15
6
May 24, 2023
What is a good tool to check codebase compatibility with PHP 8?

Do what our cto did, just put v8 on the server and composer, push and see what smells bad.

What a fun week that was.

More on reddit.com
🌐 r/PHP
22
13
January 18, 2020
People also ask

Why is static PHP code analysis important?
Static PHP code analysis helps you find bugs and weak parts of the code before it’s even run. If code quality is neglected, it becomes harder to add new features, more time is spent on bug fixing, deadlines slip, onboarding new developers takes longer, the product’s reputation suffers, and development estimates become less accurate. Code analysis helps prevent these problems.
🌐
rabitsolutions.com
rabitsolutions.com › blog › 5-php-code-analysis-tools
PHP Code Analysis Tools: 5 Best Options for Code Quality
Which PHP code analysis tools are worth trying, and how should I choose?
The article highlights five tools: PHPStan, SonarQube (with SonarLint), Psalm, Scrutinizer, and PHPCheckstyle. They support bug detection, code style enforcement, and integration into CI/CD pipelines in different ways. You should choose based on your own trials, compatibility with your tech stack, and your team’s needs (bug detection, code style, integration).
🌐
rabitsolutions.com
rabitsolutions.com › blog › 5-php-code-analysis-tools
PHP Code Analysis Tools: 5 Best Options for Code Quality
How does static code analysis differ from dynamic code analysis?
Static code analysis inspects the source code without running it and can point out potential errors and style issues before the build or tests. Dynamic code analysis runs while the code is executing, for example during unit or integration tests, and reveals issues that only appear in specific runtime conditions. The two approaches complement each other well.
🌐
rabitsolutions.com
rabitsolutions.com › blog › 5-php-code-analysis-tools
PHP Code Analysis Tools: 5 Best Options for Code Quality
🌐
JetBrains
jetbrains.com › qodana › php-code-checker
Qodana by JetBrains: The Powerful PHP Code Checker
October 21, 2021 - Static code analysis powered by JetBrains – deliver readable, maintainable, and secure PHP code.
🌐
RabIT Solutions
rabitsolutions.com › blog › 5-php-code-analysis-tools
PHP Code Analysis Tools: 5 Best Options for Code Quality
November 1, 2021 - We were only able to stabilize these software products and continue feature development after running a whole assortment of tests and completing a ton of code refactoring work. The following recommendations are based on the experience gained throughout these projects. PHPStan is a static code analysis tool that focuses on finding errors in the source code without having to actually run it.
🌐
Moodle
moodle.org › mod › forum › discuss.php
Moodle in English: moodle plugins and tools for code checking | Moodle.org
December 7, 2023 - by the way, my moodle version is 3.9.6 and I have PHP 7.2 and can't upgrade either of those at the moment ... https://docs.moodle.org/dev/Setting_up_VSCode But see what Mark says, ci will do all manner of things to check on your code, including advice on cyclometric complexity (?), and copy paste detection, which I realised recently was suggesting you had duplicated code that would be better in one place which would ease maintenance.
Find elsewhere
🌐
Cloudways
cloudways.com › home › ultimate list of best php testing tools of 2024 to deliver error-free web apps
Ultimate List of Best PHP Testing Tools of 2024
June 12, 2024 - It has support for SSL, forms, frames, proxies, and fundamental authentication. Common but fiddly PHP assignments, such as logging into a site, can be tested effectively. The framework supports SSL, forms, proxies, and basic authentication. The test cases in SimpleTest are extended from base test classes at the side methods and codes.
🌐
daily.dev
daily.dev › home › blog › get into tech › php static analysis tools: top picks 2024
PHP Static Analysis Tools: Top Picks 2024
December 22, 2025 - It's like having a code quality watchdog 24/7. Choosing a tool? PHPStan's popular, but Psalm packs more features out of the box. Want the full package? Pair PhpCsFixer with PHPCS. Just remember: static analysis is a sidekick, not a superhero. It works best alongside other testing methods.
🌐
Kinsta®
kinsta.com › home › resource center › blog › web development tools › 10 php testing tools for wordpress plugins
10 PHP Testing Tools for WordPress Plugins
September 18, 2023 - XDebug is an extension for PHP that provides a range of features to improve the PHP development experience, including debugging, improvements to PHP’s error reporting, tracing, profiling, and code coverage analysis.
🌐
Sonar
sonarsource.com › knowledge › languages › php
PHP Static Code Analysis & Laravel Quality Code Programming Language | Sonar
SonarQube use hundreds of unique static code analysis rules to find PHP bugs, code smells & vulnerabilities on the Sonar platform
🌐
PHP Code Checker
phpcodechecker.com
PHP Code Checker - Syntax Check for Common PHP ...
An advanced, custom PHP code checker that searches your code for common, hard to find typos and mistakes; includes a syntax check.
🌐
Snyk
snyk.io › code-checker › php
AI-powered PHP Code Checker | Powered By Snyk Code | Snyk
Check your PHP code security with our free code checker, powered by Snyk Code AI.
🌐
OnlinePHP
onlinephp.io
PHP Sandbox - Execute PHP code online through your browser
Run PHP code in your browser online with this tool in 400+ PHP versions
🌐
Phptools
phptools.online › php-checker
PHP CS, PHP CS Fixer, Phan and Rector Online | Php Tools Online
This form help you to analyse your script code for selected coding standard (PSR2, PSR1, PSR12, Zend, Squiz, MySource, ...). Also, you can check your source code compatibility with most recent version of PHP. The check uses the static analysis to perform audits.
🌐
BairesDev
bairesdev.com › tools › phpcodechecker
PHP Code Checker - Syntax Check for Common PHP Mistakes
An advanced, custom PHP code checker that searches your code for common, hard to find typos and mistakes; includes a syntax check.
🌐
DEV Community
dev.to › documatic › top-6-php-code-quality-tools-2023-2kb1
Top 6 PHP code quality tools 2023 - DEV Community
May 30, 2023 - I will delve into the world of PHP code quality tools in this post and examine their relevance, significance, and useful applications. Additionally, I will introduce you to the best PHP code quality tools on the market and provide details on their features and functionalities.
🌐
Reddit
reddit.com › r/phphelp › best way to test php code
r/PHPhelp on Reddit: Best way to test php code
May 24, 2023 -

I'm new to php and I need to test my code but i do not know how i would be able to do that its not like what I'm used to PowerShell has to be the easiest one to test on a local system. but i apricate the help.

🌐
Psalm
psalm.dev
Psalm - a static analysis tool for PHP
It’s easy to make great things in PHP, but bugs can creep in just as easily. Psalm is a free & open-source static analysis tool that helps you identify problems in your code, so you can sleep a little better.
🌐
DNSstuff
dnsstuff.com › home › 7 tools for best php performance
7 Tools for Best PHP Performance
May 13, 2024 - XAMPP is an offline PHP development environment where programmers can test their work as if they were actually using a web server. With this tool, developers can perfect PHP code within a local test server and then migrate it to a live server, ...
🌐
Pest
pestphp.com
Pest | The elegant PHP testing framework
Pest is built on top of PHPUnit, but it spices things up with some neat features you might dig. With Pest, you have access to a user-friendly API that is inspired by Ruby's Rspec and Jest libraries, making it easy to write elegant tests quickly. Additionally, Pest's console output is truly stunning and makes it effortless to spot any issues that arise.