3v4l.org

run code in 200+ php & hhvm versions
<?php echo preg_quote('{'); echo preg_replace('{aaa}', 'bbb', 'hpdaaafijfew');
based on Rmmf8
Output for 7.1.25 - 7.4.0beta4
\{hpdbbbfijfew