3v4l.org

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