3v4l.org

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