3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $s = 'abc/{foo}/sdasd/{bar}'; $a = ['one', 'two']; do { $r = preg_replace('/\{*.\}/', array_shift($a), $s, 1); var_dump($r); } while ($r !== null);

Abusive script

This script was stopped while abusing our resources