Hello, does anyone know any programs for transcoding code from C, C++ to PHP code?
Answer 1, authority 100%
Well.. actually, theoretically, there are a number of serious difficulties that it is not clear how to solve on the go. And even if someone came up with something, it would require a serious investment of resources. It would be something expensive in other words.
And finally, the last thing: why do you need such a tool? Why can’t you just compile C code and then access it from PHP? It will be much more efficient from all points of view. You can use automatic tools to get the job done, for example SWIG.
Given these two points, it is unlikely that such a tool exists.
Answer 2, authority 25%
Such a translation is not possible and is unlikely to ever be possible
If the goal is to use C-code in PHP, FFI