Maybe this can be interesting for you guys? http://olleharstedt.github.io/programming/2023/03/19/memory-polymorphic-spldoublylinkedlist-pholyglot.html
> A memory-polymorphic, polyglot implementation of SplDoublyLinkedList (as transpiled by Pholyglot 0.2-betachicken)
It's a transpiler that takes PHP and outputs PHP-and-C code :)