Please note that Bitnami Stacks are completely self-contained and run independently of the rest of the software or libraries installed on your system. For that reason, it is not possible to upgrade one component of the stack (in this case PHP).
You need to upgrade de full stack and then restore your files. For example, if you have a cloud instance, you should launch a new cloud image with the latest version, and then migrate your data there.
I hope it helps