main.php
Loading editor…
ReadyLn 1, Col 1PHP

PHP

PHP online compiler

Run PHP scripts online in a sandbox, with a live terminal for input and output. Free, no sign-up, and you can share your code by link.

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.

Questions and answers

Which PHP version do you run?
PHP 8.5, with mbstring, bcmath, OpenSSL, zlib and SQLite built in. The exact version is shown after each run.
Can I use Composer packages?
No. Version one is a single-file runner without Composer or network installs.
Can I type input while the script runs?
Yes. Choose Interactive mode and answer prompts in the live terminal. Batch mode still lets you paste stdin before Run.