- PHP 7.4 with FFI enabled
- go 1.3 or higher
- gcc
checkout this repository
$ make
$ composer install
$ ./vendor/bin/phpunit
src/lib/sample.c
src/ArgumentsampleC
Basically, use c code as interface to prevent seg fault.
src/lib/go-sample.c
src/ArgumentsampleGo