xhp was honestly pretty nice - it was something watching the rapid codemods transform the language.
There was also ComponentKit, which was used heavily in fbobjc: https://github.com/facebook/componentkit
And long before transpiling became cool, FB had https://en.m.wikipedia.org/wiki/HipHop_for_PHP
Check this project:
https://en.wikipedia.org/wiki/XHP