I’m trying to build a PHP site and I’m wanting to test my PHP files without uploading them to my host. Basically testing them on my own machine before I upload them. How do I do that?

I’m trying to build a PHP site and I’m wanting to test my PHP files without uploading them to my host. Basically testing them on my own machine before I upload them. How do I do that?