I wonder how keep you can stack them before things start to break down
This seems actually useful since it's really doing transpiling!
I made some progress on a similar transpiler some years ago https://git.ivysaur.me/code.ivysaur.me/php2go but never really finished. I still have the use case. Do you know if there's any production quality transpiler?
Today you would probably involve an LLM somehow, but it's hard to trust the result.