3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $query = '{{aaa}} {b}'; $query = preg_replace("/\\{\\}(?:,?\\{\\})+/", "{}", $query); var_dump($query);
Output for 4.3.0 - 7.1.0
string(11) "{{aaa}} {b}"