PHP playground

function greet($name) {
    echo "Hello, $name!";
}

greet("World");
This playground is completely in-browser.

The first run will download the PHP runtime (13.2 MB), so it may take some time. Subsequent runs will be instantaneous.

PHP is a popular general-purpose scripting language, particularly suited to web development.

⛫ homepage • αω tutorial • ⚘ community

Sandbox details

PHP version:        8.2
sandbox engine:     wasi
sandbox name:       php
allowed commands:   run
in-browser:         ✔

Usage example:

```php
<?php
echo "Hello, World!";
```

<codapi-snippet engine="wasi" sandbox="php" editor="basic">
</codapi-snippet>

Documentation