2 PHP versions on same hosting path

Is it possible to use 2 PHP versions on the same hosting path ?

for an example:

domain.com in the path /home/user/web/domain.com/public_html site with PHP 7.4

domain.com/subfolder in the path /home/user/web/domain.com/public_html/subfolder site with PHP 5.4

Hestia only supports php5.6 and upwards, so you will not be able to run php5.4. Also currently it is not possible, to run different versions on one domain - a solution would be to create a subdomain for that content.