Toolbox for developers / PHP online test

PHP tester

PHP tester 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.

You can also execute and test PHP code from your browser (sandbox).
It is a alpha version, only work using PHP 5. It uses uniter library, and only supports a small subset of PHP.

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 phpfiddle tool.


PHP code




PHP version (for code checker only)



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.


To run and execute your PHP code in your browser, it is analogous to the check syntax code, except that you must click on "RUN PHP code (ALPHA)" button.


PHP code checker

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).

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 ...).


PHP sandbox (Alpha version)

You can test your PHP code online directly in your browser (php fiddle), it uses a code compiler (PHP to JavaScript), your code is not interpreted by a real PHP binary!
It is a alpha version, it only supports a small subset of PHP. You can not rely on this tool to validate the functionality of your php script.
I do not have the necessary infrastructure to run a PHP source code using a real binary safely.



You can report a bug or give feedback by adding a comment (below) or by clicking "Contact us" link (at the top right hand corner of the page).

Comments





The tools are provided "as is", without warranty of any kind, either express or implied.