blob: 27a54168ee4e9d3be6027c189a5e8b2429d4ff64 (
plain)
1
2
3
4
5
6
7
8
9
|
import PHPWasm from './php-wasm.js'
const { ccall } = await PHPWasm();
const result = ccall(
'php_wasm_run',
'number', ['string'],
[`echo "Hello, World!";`],
);
console.log(`exit code: ${result}`);
|