I was going to suggest firing up another Vagrant VM. But obviously, that’s going to waste a *lot* of resources on the host.

But yes, you could handle that pretty easily with some sort of (semi-)automated adjustment of virtual host config, and maybe some additional deployment steps to export WIP from a branch into a “running copy” seen by the appropriate vhost’s version of PHP.