PHP syntax checker


PHP code

PHP version for code checker

PHP error checker allows to check your PHP code syntax, and find PHP errors easily and quickly. This PHP code checker tool highlights and goes to line with a syntax error.

To check your code, you must copy and paste, drag and drop a PHP file or directly type in the "PHP code" online editor below, and click on "Check PHP syntax" button.

You can see the user guide to help you to use this php checker tool.

User guide

To check syntax code:

  • First, Drag and drop your PHP file or copy / paste your PHP text directly into the editor above.
  • Finally, you must click on "Check PHP syntax" button to display if there is an syntax error in your code.

PHP code checker tool

PHP is a server-side scripting language, but can also be used as a general-purpose programming language.

PHP error checker tool allows to find syntax errors (lint). You can test your PHP code online directly in your browser.

If a syntax error is detected, then the line in error is highlighted, and it jumps to it to save time (no need to search the line).

It can be useful to make online test to save time (deployment ...).

Note: This tool no longer offers sandbox, it was not good enough.


An API is available to test the syntax of your php scripts.


Check the syntax with the latest version of PHP available (7.1 ...).


Check the PHP syntax, version 5.6.
Available versions: 5.3, 5.4, 5.5, 5.6 and 7.1.

	// Your PHP code
JavaScript example:
const request = new XMLHttpRequest();"POST", "", true);
request.onreadystatechange = () => {
request.send('<?php echo "Hello"; ?>');
Success: 200
   "message":"No syntax errors detected :)",
Error: 200
   "message":"Syntax errors detected :",
   "detail":"syntax error, unexpected end of file, expecting variable


About PHP

PHP (recursive acronym for PHP: Hypertext Preprocessor) is a server-side scripting language especially suited for web development.PHP script can be embedded into HTML. PHP can also be used as a general-purpose programming language.

PHP has become popular among Web Developers thanks to its advantages: Simplicity, Free, Flexible and Scalable, CMS, Vast Community ...