3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $str = " muito bom parabéns 😤 AND r0_.avaliacao = 'Parabéns 😤' "; $str = 'Muito bom, parabpens.'; $str_encoding = mb_detect_encoding($str, 'auto'); $str_name = iconv($str_encoding, 'UTF-8', $str); $str_name = preg_replace('/[^\p{L}\p{N}\s]\w/u', '', $str); print($str_name);
based on cuC73