Installing PHP 7.1 on CentOS 6

I am really a newbie so sorry for some basic level questions.
I have read:

I need the exact commands for installing php 7.1
Also the path it is going to be installed.

Once this is installed will it be available on Virtualmin?

My current PHP versions are 5.4.16 & 7.0.27
See the screenshot from:

Please advise.