On my main server for GreenRobot apps, I recently upgraded PHP from 5.6 to 7.3. One thing that helped was the PHP Web and Toolkit for Coda. When there was an error I used “Tidy PHP” and the error was fixed.
Also, since I used ADODB it was pretty easy to switch to a new mysqli driver versus mysql. ADODB is available via PHP Composer.