phpv lets you quickly switch between multiple PHP versions for your projects.
🚀 Get phpv
$ phpv install 8.3
$ phpv use 8.3
$ php -v
PHP 8.3.11 (cli)
Switch PHP versions instantly without restarting your terminal session.
Works with PHP 8.0+ and supports both CLI and Apache/FPM servers.
Configure different PHP versions for each project with project-local configuration files.