While Drupal 7 runs on the PHPTemplate as its default theme engine, Drupal 9 uses Twig (which replaces the PHPTemplate as the default theme engine).