Comprehensive guides, tutorials, and references to help you manage PHP versions with ease.
PHPVersion is a command-line tool that lets you easily install and switch between multiple versions of PHP, making it ideal for testing and development. It works seamlessly on macOS, Windows, and Linux.
$ brew install phpversion # macOS/Linux $ install-phpversion.ps1 # Windows PowerShell
After installation, initialize PHPVersion by running phpversion --init
to set up shell integration.
Use this command to instantly switch between installed versions for different projects or testing.
New versions are downloaded and installed to isolated directories, keeping your environment clean.
Run phpversion list
to see all installed and available versions you can switch to.
Check out our detailed guides and contact support if you have more technical questions.
Contact Support