aboutsummaryrefslogtreecommitdiffhomepage
path: root/files/6
diff options
context:
space:
mode:
Diffstat (limited to 'files/6')
-rw-r--r--files/69
1 files changed, 9 insertions, 0 deletions
diff --git a/files/6 b/files/6
new file mode 100644
index 0000000..27a5416
--- /dev/null
+++ b/files/6
@@ -0,0 +1,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}`);