PHP playground

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

greet("World");

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

⛫ homepage • αω tutorial • ⚘ community

Sandbox details

PHP version:        8.3
sandbox engine:     codapi
sandbox name:       php
allowed commands:   run
in-browser:         via wasi

Usage example:

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

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

Documentation