left click wamp> php>version> get more>
select the version ytou want and download it.
install the exe.
left click wamp> php> version> php xxx.x
UPDATE: I have further investigated: to switch between that 2 version seems not that simple... please check this guide, it has very detailed information
and this maybe also help