Next PHP version (7.4) will bring a lot of new exciting features. One of them is PHP Foreign Function Interface extension built directly into the core. But what problems exactly this extension is trying to solve? Does this mean that we no more need to write PHP extension if we want to use an existing library?

In this talk, we will together discover way how to easily call almost any C library directly from PHP. Why we want to do this. How to overcome common pitfalls and most importantly when to use approach and when not.


Comments are closed.

Gert de Pagter at 22:25 on 7 Jun 2019

I learned how to interact with FFI, will be great to use this in the future

Dion Snoeijen at 17:14 on 8 Jun 2019

Not sure if I'm ever going to use it. But still very interesting.


Learning new stuff is always entertaining.
A lot of code examples is always a plus.
It was well presented in English, which is not always so obvious for non native English speakers.


I felt a bit overwhelmed by the use of C code, which is not a well-known language to me (but again, this could be my personal issue)
I did not see a lot of use cases for this at the moment : agreed, you can use foreign functions to PHP in PHP itself this way, but then again, with the current eco system solutions can be found quite easily.
The performance is indeed a detriment to wide spread adoptions, which is a turn off to me.
I would have like to see, if possible of course, examples with FFI and another language, to demonstrate its broader capabilities.

Overall, a good talk, and quite informative, but personally, I do not see a lot of gain at the moment. Definitely will keep an eye on FFI though, it seems interesting enough :)

A good talk. I learned what FFI is and what it can be used for. The speaker also pointed out the risks of using this new feature.

Bart V at 19:27 on 10 Jun 2019

Might never gonna use it but good talk.

De Fix at 10:51 on 11 Jun 2019

I probably never gonna use this feature, but it was great to see what can be done with FFI