aboutsummaryrefslogtreecommitdiffhomepage
path: root/README.md
blob: 2701439815fe6bffd0d585ee74ea44501655247a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# Waddiwasi

This is a WebAssembly runtime written in pure PHP.

It is partially compatible with the WebAssembly specification version 2.0.



## Examples

### PHP on Wasm

The PHP runtime can be compiled to WebAssembly binary. This Wasm runtime can execute it. Currently, "Hello, World!" program works on the PHP runtime on the Wasm runtime.

```
$ composer example:php-on-wasm
```

### RubyVM on PHP on Wasm

https://github.com/m3m0r7/rubyvm-on-php is a RubyVM written in pure PHP.

It works on the PHP runtime on my Wasm runtime.

```
$ composer example:rubyvm-on-php-on-wasm
```

NOTE: there is a known bug where `munmap()`-related errors are reported.



## Talks

[Talk in PHPerKaigi (in Japanese)](https://fortee.jp/phperkaigi-2024/proposal/bc5dc153-17af-4079-8f1b-2660af97e2c8)



## Known Bugs

See [BUGS.txt](./BUGS.txt).



## License

See [LICENSE](./LICENSE).