Introducing the new Twig Playground


I'm very excited to announce the launch of Twig
Playground
, a new tool that allows you to test
and experiment with Twig templates in a sandbox environment. It is entirely
web-based, with no backend.

Twig templates are rendered via PHP Wasm and the state is preserved in the
URL for easy sharing. It can be used to try Twig, quickly test new features, and
it is the perfect tool to improve bug reports with reproducible examples.

You might have used https://twigfiddle.com in the past. Alain
Tiemblo
started it in 2011 and it was a great
tool. It was widely used by bug reporters to share examples of wrong behaviors.
Unfortunately, it's not available anymore, and the new Twig Playground is its
successor. Alain was kind enough to share the old database with me to help the
transition. Most of the old http://twigfiddle.com fiddle links work again and
redirect to this new playground (which makes me happy as so many issues have
such links).

Sponsor the Symfony project.