The question is why did he need that specific php version? Was there something that required it and if so could that be isolated?
Been there, done that, have scars.
I'm more inclined to believe he googled and blindly followed an old guide with an old ppa than I am to believe that google cloud by default installed an EOL PHP server.
I'm pretty sure he was a node guy who found himself in the PHP world.