Let’s just rewrite the thing in Laravel, hook all the functions using RunKit7 (or a fork) to implement a plugin compatibility layer, and send the old codebase to the dumpster fire. WP Engine and other hosting agencies, it could be a matter of survival for you.