What's the difference between Virtualmin and Webmin and how to setup different php versions

In Virtualmin it’s easy. You just go to the virtual server you want to manage and click on Server Configuration / PHP Options and there it is.

In Webmin there is a PHP Configuration screen under the tools menu.

You may want to consider getting Virtualmin. To me it makes everything a great deal easier.