What php gets called for home_url/somepage URL?

Here’s an answer I posted elsewhere here:

WordPress is not HTML. It’s PHP-based templates that build the HTML pages.

You need more than just a quick answer. You need to learn about the entire process WordPress uses to build pages.

Perhaps one place is to start here to figure out how WP works: https://codex.wordpress.org/New_To_WordPress_-_Where_to_Start . And if you are not comfortable with PHP, then you need to get some basics about how it works so you will understand the code behind the WP templates. Perhaps start here to learn about PHP: https://www.w3schools.com/pHP/default.asp .

This is not going to be a quick process. It will take some time and effort on your part. But you might have fun doing it.