You can use PHP-FPM Selector and compile all php version you need. First you must select module from option list(if you want select module), then compile php.
When the system finishes compiling, go to the configuration
Manage WebServers Configuration, selet the user, then the domain or sub domain, create configuration, select apache php-fpm and the version of php you need. Check Rebuilt vhosts option and save