https://www.phparch.com/article/a-guide-to-practical-usage-of-php-ffi/ By https://www.phparch.com/community/bohuslav-simek/ In this article, practical examples will teach you how to communicate with external libraries using PHP FFI.
Come up with theories about what might have gone wrong, then set out to prove or disprove each theory.
When the problem fits, with no loose ends hanging out, we have almost certainly arrived at the right answer.
I’ve been able to get a couple applications upgraded recently, and it took less than 5 minutes in each case.