Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

mstdmstd's avatar

How to set different php version in homestead cli hostings ?

I have installed Homestead with several hosting and php.80, php.81, php.82 in Homestead.yaml file, but checking php version in cli of amny project I see latest PHP 8.2.3 version. Checking hostings in browsers I see valid PHP versions I expected.

In docs at https://laravel.com/docs/9.x/homestead I found commands

php81, 
php82, 
php80, 

But running these commnds looks like php version is modified for all cli hosting, that is not good for me ?

How can I change php version of cli on amy hosting ?

Thank you!

0 likes
0 replies

Please or to participate in this conversation.