Change PHP version a Website via Cron Job


I want to change PHP version a website via Cron job. Because i dont know why my Website down after few hours, it’s back when i changed php version.

What command i need to use?

Thank you! and sorry about my English.