What is the PHP equivalent for Node Version Manager

How do you maintain code that requires an older PHP version? I have multiple PHP projects written in different versions of PHP, including old Laravel projects that I want to maintain.

I’m using Windows and XAMPP.

I just uninstall the new XAMPP version and install an older one.