Set of simple FFI examples.
All provided code samples require minimum version of PHP 7.4 and operating system Linux or Windows with WSL. You can use provided Docker image.
First you have to build the image:
docker-compose build --no-cache --pull
You can then run any example:
docker-compose run php74 php abs.php