3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $SYMB = "[This was filled in]"; $body = "Hello world \$SYMB $SYMB testing foo"; $body = preg_replace('/\$([A-Z]{1,6})/', '\\1', $body); print $body;
based on ng1Al
Output for 4.3.0 - 7.2.0
Hello world SYMB [This was filled in] testing foo