Skip to content

Instantly share code, notes, and snippets.

@Hywan
Last active April 3, 2019 07:46
Show Gist options
  • Save Hywan/66e30807045b65a40eed4d2bf67cbe00 to your computer and use it in GitHub Desktop.
Save Hywan/66e30807045b65a40eed4d2bf67cbe00 to your computer and use it in GitHub Desktop.
Wasm examples, PHP part
<?php
$instance = new Wasm\Instance('simple.wasm');
$result = $instance->sum(1, 2);
var_dump($result); // int(3)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment