What are some common template systems used in PHP development and what are the advantages and disadvantages of each?

Issue: When developing web applications in PHP, it is common to use template systems to separate the presentation layer from the business logic. Some common template systems used in PHP development include Smarty, Twig, Blade, and Plates. Each of these template systems has its own advantages and disadvantages, which should be considered when choosing the best one for a project. Code snippet:

// Example using Twig template system
require_once 'vendor/autoload.php';

$loader = new \Twig\Loader\FilesystemLoader('templates');
$twig = new \Twig\Environment($loader);

echo $twig->render('index.html', ['name' => 'John Doe']);