apache cpu over 70% on localhost

Your tryout.php has a posts loop in it, and you’re calling that file inside another loop. Loops squared. I expect your content is not actually structured in this way?