Building your own userland SQL Prepared Statements 'replacement' using string replacement is not "pretty damn good".
WordPress is notorious for refusing to drop support for ancient, unsupported versions of PHP.
WordPress is a fucking terrible solution to any problem, from a technical point of view.