Skip to content
Devtoolry

PHP Compiler

Run PHP 8 code online. Execution happens in an isolated sandbox server, never on the web host.

About the PHP Compiler

The PHP Compiler sends your code to an isolated execution sandbox on a separate server, never the web host, and shows the output. It is useful for testing snippets, functions and PHP 8 syntax.

Your code runs in an isolated sandbox (a Web Worker in your browser, or a separate execution server for PHP), never on the web server itself.

How to use the PHP Compiler

  1. Write or paste PHP, including the opening <?php tag.
  2. Add stdin input if your script reads it.
  3. Click Run and read the output.

Frequently asked questions

Is it safe to run untrusted code?

Code runs in a separate sandbox with time and size limits, isolated from the website and its data.

Which PHP version is used?

PHP 8, so features like named arguments, match expressions and enums are available.