We have managed to get deeply philosophical here. I'm probably going to make it worse... you might want to have a read of,
https://moodle.org/mod/forum/discuss.php?d=447628
If money were no object, the simple thing is probably to buy a Linux
VM of some sort off AWS, DigitalOcean or whoever and you can more or less run any versions of the OS software you like. You can even use their database, cache, file
server, backup (and so on) services if you want. However, to get enough computing power to run a decent size Moodle site is going to be relatively costly.
As mentioned in the other thread, you can probably reduce this by looking at containers (most well-known hosts have some variation on this) but you've just increased the complexity of the project by an order of magnitude.
At the end of the day, it's like buying gas or electricity - there's a little meter ticking away somewhere and someone will charge you for the stuff you use. Sometimes quite a lot.