---
title: "Twig 3.25.0 released (Symfony Blog)"
url: https://daily.dev/posts/twig-3-25-0-released-symfony-blog--2oth00kk1
source_url: https://symfony.com/blog/twig-3-25-0-released
type: article
source: "Symfony"
published: 2026-05-17T09:06:30.252Z
updated: 2026-05-17T09:06:51.918Z
tags: ["php", "symfony"]
reading_time: 2
upvotes: 9
comments: 0
language: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Twig 3.25.0 released (Symfony Blog)

**[Symfony](https://daily.dev/sources/symfony)** · 2 min read · 9 upvotes · 0 comments

## Summary

Twig 3.25.0 introduces three notable changes: a new `needs_is_sandboxed` option for filters, functions, and tests that allows callables to detect and adapt behavior when running inside a sandbox; deterministic compiled output for templates using `{% embed %}`, enabling reproducible pre-compiled builds; and the ability to override `EscaperRuntime` via any runtime loader. Symfony 8.1's TwigBundle also benefits from the EscaperRuntime change, registering it as a service and adding a `twig.safe_class` resource tag.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://symfony.com/blog/twig-3-25-0-released>

## Similar posts on daily.dev

- [Twig 3.26.0 released \(Symfony Blog\)](https://daily.dev/posts/twig-3-26-0-released-symfony-blog--ipy5xm62a) · Symfony · 0 upvotes · 0 comments
- [Twig 3.27.1 released \(Symfony Blog\)](https://daily.dev/posts/twig-3-27-1-released-symfony-blog--kppgfppxy) · Symfony · 6 upvotes · 0 comments
- [Twig 3.28.0 released \(Symfony Blog\)](https://daily.dev/posts/twig-3-28-0-released-symfony-blog--dpjk2dnjm) · Symfony · 4 upvotes · 0 comments

---

Tags: [#php](https://daily.dev/tags/php), [#symfony](https://daily.dev/tags/symfony)

[View this post on daily.dev](https://daily.dev/posts/twig-3-25-0-released-symfony-blog--2oth00kk1)
