To select PHP version for a virtual directory within a website, perform the following steps:
1 - 1 - Logged in to Plesk, https://your domain name:8443.
2 - Go to Websites & Domains, and find the website's domain name.
3 - Click Virtual Directories.
4 - Browse to the required directory and click a link with its name.
5 - In the Tools group, click PHP Settings.
6 - Select the required version of PHP and click OK