Where To Safely Test The Upgrade?

I want to upgrade my site. However this is very dangerous because most propably a lot of things wont work properly afterwards and i will lose a lot of customers.

Where i can perfom a test upgrade before i do it on the live server? I want to test it on an online server to be able to work with my team.

Thank you.

Please take a look