3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $string = "1234@#$ABCFG3478&*"; $result = preg_replace("/[^A-Z]+/", "", $string); var_dump($result);
Output for 5.0.4 - 7.2.0
Notice: Undefined variable: ABCFG3478 in /in/2trmm on line 3 string(0) ""
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: ABCFG3478 in /in/2trmm on line 3 string(0) ""