3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $str='A'; var_dump($str); $a = preg_replace('/[^;\sa-zA-Z0-9áéíóúñÁÉÍÓÚÑ]+/u', '', $str); var_dump($a);
Output for 4.3.0 - 7.1.0
string(1) "A" string(1) "A"