Php problems

Im currently on the first tutorial on php i am new to all this so forgive my stupidness here.

I tried a php code as given in the tutorial and pasted it into notepad… then it says to upload to a server… which i do not have… i don’t really to be paying for a server just to test the code. Is there a way to set up an offline server on my pc for free so i can test php.?