3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $template = "<html><head><title>{{head}}</title></head><body>{{body}}</body></html>"; preg_match_all("{{(\w*)}}", $template, $matches); foreach($matches[1] as $var) { ${$var} = ''; }
Output for 4.3.0 - 7.1.0