Nice. Sort of the computational equivalent of 'A model of Neuschwannstein Castle made out of spaghetti'.
PHP gets a bad rap because 'it's not a real language after all' but frankly I don't care what language you use if you write neat code like this that's an automatic 'pass'.
You can write spaghetti code in any language, but this isn't it.
PHP gets a bad rap because of problems with its design and implementation and some loosy-goosy culture (though most of these can be worked around or smoothed over by a framework and personal discipline, core language issues can be a form of technical debt). Really fixing this might require a breaking new version like Perl 6 or Python 3. But of course you can still build things with it. Like models of Neuschwannstein Castle ;)