In reply to Ozzy.

Go ahead and rewrite it, and then tackle the issue of rewriting the thousands of plugin integrations
Then you will realize and appreciate why php is used for CMSes