PHP cli version same as web on ssh/terminal

is there any way i can have some version of php for web and ssh terminal, good for composer and deploying tools

Did you find a way to get around this issue?