aboutsummaryrefslogtreecommitdiffhomepage
path: root/README.md
blob: ba182c77fe5e06c6107183e287f723e0db420e84 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# tiny-php.wasm

A tiny example to compile PHP runtime ([php/php-src](https://github.com/php/php-src)) to WebAssembly.

Article about this repo (Japanese): https://blog.nsfisis.dev/posts/2023-10-02/compile-php-runtime-to-wasm/


## Build

```
$ docker build -t php-wasm .
```

## Run

```
$ echo 'echo "Hello, World!", PHP_EOL;' | docker run --rm -i php-wasm
```

## License

Public Domain