3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $template = "<html><head><title>{{head}}</title></head><body>{{body}}</body></html>"; $vars = preg_match("{{(\w*)}}", $template); var_dump($vars);
Output for 4.3.0 - 7.3.1
int(1)