PHP update to 7.x

Hi there
My aim is to install nextcloud on mycloud mirror gen 1.
I have to install a new PHP Version before. But I can’t find a how-to.
So, I’m hoping that someon can give me a hint.
And why I’m doing this, is that I will sync caldav, a better looking software, etc…