Using a function instead of a twig global for php version.