I set up Apache and multiple PHP versions on macOS following this guide. Unfortunately, switching PHP version with mentioned sphp-script works great for client version of PH