The old way and long syntax still works <?php echo date("Y"); ?>
<?php echo date("Y"); ?>
But there is an alternative also, a short syntax for modern development
<?= date("Y"); ?>