PHP syntax checker.
PHPhub is an online PHP syntax checker that validates PHP code and highlights the specific line where a syntax error occurs. Users can paste code, drag and drop a PHP file, or type directly into a built-in code editor, then run a check that flags issues such as missing semicolons, unclosed parentheses, quotes, or braces, incorrect capitalization, undefined variables or functions, and malformed array or variable assignments. Checks can be run against multiple PHP versions, including 8.5.0, 8.3.6, 8.0.0, 7.4.8, and 5.6.40.
The tool also exposes an API for validating PHP code programmatically: a POST request to a version-specific endpoint returns a success response with no errors or an error response containing the parsed syntax error and line number.
It is intended for PHP developers who want to quickly locate and fix syntax errors in scripts without manual line-by-line review, in both browser-based and programmatic (API) workflows.
It supports PHP 8.5.0, 8.3.6, 8.0.0, 7.4.8, and 5.6.40.
Yes, a POST API at https://api.phphub.net/php-checker/{PHP version} validates PHP code and returns a list of syntax errors; the site asks that it be used sparingly.
No, you can test your PHP code directly in your web browser using the online editor.
It detects PHP syntax errors such as missing semicolons, unclosed parentheses/quotes/braces, incorrect keyword capitalization, undefined variables or functions, and malformed array or variable assignments.
Show your product to thousands of developers
· 100k monthly pageviews
· 7k newsletter subscribers
For compiling and running code in several languages.
Run JMESPath queries on JSON data for filtering, transforming, and extracting results.
Online code execution system.
Create, retrieve, update, increment, and decrement counters identified by namespace and key.
Validate Python code syntax.
Validate SQL queries.