I had a lot of trouble figuring out how to update PHP on my Wordpress site hosted on Google Cloud to resolve recent security issues. He's a rundown of how I did it.
First, Login to the Google Cloud and SSH into your VM.
Install the new PHP version: sudo apt-get install lsphp85 lsphp85-common...