How to use this developer tool
- Paste PHP code.
- Select a target PHP version.
- Choose Basic, Standard, or Strict analysis.
- Run the checker and review issues by severity.
- Copy or download the report.
Check PHP code for likely syntax mistakes, risky functions, compatibility concerns, and maintainability issues directly in your browser. The tool performs static analysis only and never executes or uploads your code.
It scans PHP source for structural errors, common coding mistakes, risky APIs, version-sensitive syntax, and quality warnings. Results include line, column, severity, rule ID, and a suggested fix.
No browser-only checker can replace php -l, PHPStan, Psalm, or a real test suite. Treat “No issues detected” as a static-analysis result, not proof of runtime correctness.
Input:
<?php $name = $_GET['name'] echo $name;
Output: missing semicolon and direct superglobal usage warnings.
Paste the code and run the static checker. It reports likely bracket, string, semicolon, declaration, and control-structure problems with locations.
The checker examines statement-like lines and flags probable missing semicolons while avoiding common block and control-flow lines.
Enable security checks to flag APIs such as eval, exec, shell_exec, system, passthru, proc_open, and unserialize.
Browser analysis cannot execute PHP, load extensions, resolve files, connect to services, or reproduce your server configuration.
Select a target version. The tool flags known version-sensitive constructs, but final verification should use the target PHP runtime.
| Module | Purpose |
|---|---|
| Syntax | Brackets, strings, semicolons |
| Security | Risky functions and input usage |
| Compatibility | Version-sensitive features |
| Quality | Long functions and deep nesting |