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
- Write or paste PHP, including the opening <?php tag.
- Add stdin input if your script reads it.
- 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.
Related tools
JavaScript Compiler
Run JavaScript online in an isolated browser sandbox. See console output, errors and execution time instantly.
TypeScript Compiler
Compile and run TypeScript online. Types are stripped and the result executes in a sandboxed worker.
Python Compiler
Run Python 3 online using a WebAssembly sandbox with the standard library. Supports stdin input.