Which of the following options is the correct order (by priority in use) to display a single page in the template hierarchy?

Which of the following options is the correct order (by priority in use) to display a single page in the template hierarchy?

  • custom template file, page-{slug}.php, page-{id}.php, page.php, singular.php, index.php
  • custom template file, page-{id}.php, page-{slug}.php, page.php, singular.php, index.php
  • php, index.php, page-{id}.php, page-{slug}.php, page.php, custom template file
  • custom template file, page-{slug}.php, page-{id}.php, page.php, singular.php, index.php