3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $text = 'TEXTO DE áéíóúñ PRUEBA'; $text = preg_replace('/[^a-zA-Z0-9áéíóúñ\', ]/i','',$text); var_dump($text);
Output for 4.3.0 - 7.1.0
string(28) "TEXTO DE áéíóúñ PRUEBA"