3v4l.org

run code in 300+ PHP versions simultaneously
<?php $template = "<html><head><title>{{head}}</title></head><body>{{body}}</body></html>"; $vars = preg_match_all("{{(\w*)}}", $template, $matches); var_dump($matches[1]);

preferences:
45.33 ms | 402 KiB | 5 Q