Is it possible to add an updated version of PHP?

You can update your PHP through the MAMP PRO UI. Go to Languages > PHP, and press the + button next to the "Default Version" text box.