« Back to PHP Tutorial
PHP Editor
— php-wasm (PHP in WebAssembly)
Sample programs…
Clear output
Clear code
Run »
Loading php-wasm… (first run downloads ~10 MB)
|
Tip:
Ctrl
+
Enter
to run
PHP
<?php // Welcome to the iwantcoding.com PHP playground. // This is real PHP compiled to WebAssembly. echo 'Hello, PHP!', PHP_EOL; echo 'Running PHP ', PHP_VERSION, PHP_EOL; $status = 'paid'; echo match ($status) { 'paid' => 'Order: OK', 'pending' => 'Order: Awaiting', 'refunded' => 'Order: Refund issued', default => 'Order: Unknown', };
OUTPUT
Output of echo, print, print_r, var_dump and uncaught errors will appear here.