Does your php-extension tutorial actual for php 8.1 (or 8.0)?
It will be great if you add some material about using C++ also. For example refresh an article (php 5.4). It has been already revised by a lot of comments. But there is an opinion that this article is obsolete.
It will be interesting to know how to use php memory for c++ classes.
There are some variants about C++ (at least): SWIG and PHP-CPP. But it is not known about support php 8 (and some other reasons not to use that variants).
Good day!