The PHP Foreign Function Interface extension was introduced in PHP 7.4 as a way to load libraries (e.g. SO or DLL files) and then call C functions or access C data structures in pure PHP code. It was based upon similar extensions for Python and Lua. As of PHP 8.0 it is still considered to be an experimental extension.