PhP Xampp I am installing two different versions of xampp, because I need to different php versions for two different laravel projects.
But it looks that the php version remains the same.
How can I run two different php versions?
It's going to require a bit of manual tinkering with your system. Perhaps try out Laragon instead that has a feature to combat this exact "problem".
Install new Xampp in a different location from your old XAMPP
Change the PATH in your local environment variables (new PHP path should be above old PHP path)
Run refreshenv in your terminal
refreshenv
You will get the below message
Refreshing environment variables from registry for cmd.exe. Please wait...Finished..
Reopen VSCode / or your IDE
When you want to switch between the other ,you have to swap your system's local environment Variable - follow the above steps again .
Please sign in or create an account to participate in this conversation.