Loading editor…
Output
—

PHP online compiler

Run PHP in the browser — scripts, strings, and quick checks.

About this PHP compiler

PHP powers a large share of the web. This online PHP compiler runs your script in a sandbox and prints stdout so you can try snippets without installing a local stack. Use it for small examples, interview warm-ups, and teaching demos.

FAQ

Which PHP version do you run?
The sandbox uses the PHP package installed on our Piston runner. The version is shown in the runtime label when available.
Can I use Composer packages?
No. Version one is a single-file runner without Composer or network installs.