Analyse PHP script 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. The exhaustivity does not guarantee without execution of code in real condition on the targeted PHP version.

Submit your PHP script

By click on Analyze, you declare read and accept the term of use and the confidentiality policy.

Why use Coding Styles checker is needed?

The code source style helps you and other developers to read the code most easily.

Can I update the code style automatically?

Yes, you can (it's recommended) run PHP CS or PHP CS Fixer on your code to apply all rules of style code. You must configure the tool before running to define the main code style between PSR 1, PSR 2, PSR 12, Symfony, PEAR, Zend or your custom rules.
You can use a GIT hook to apply only to updated files.

What is the goal of static analysis to upgrading the code?

The static analysis help the developer to check and list all necessary change in code sources.

The static analysis is sufficient to upgrading code to new PHP version?

No, you must run your code with the targeted PHP version to run unit tests and all other tests. The manual test is needed to complete the test.