For a personal test server, one of the best things I've found in the past year is to set up and use a Raspberry Pi 3. For about a hundred US dollars (less than the cost of a years worth of hosting) you can have a system that allows you to totally change the operating system and software in a couple of minutes simply by switching the memory chip. In other words I have memory chips setup with various Linux distributions, NGINX and Apache web servers, MySQL, MariaDB, and PostgreSQL databases, as well as PHP 5.5, 5.6, 7.0 and 7.1. In fact, I find they are cheap enough to where I now have two mini towers with 7 Raspberry Pi's in each tower so that I've even been able to experiment with running Moodle on a cluster.
My setup is not accessible online, but others are. There is a nice example using a Raspberry Pi 2 at https://moopi.uk/