3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $valor = "JoÃo dos Santos Videira"; echo preg_replace("/&([a-z])[a-z]+;/i", "$1", htmlentities($valor));
Output for 5.4.0 - 7.1.0
JoAo dos Santos Videira
Output for 4.3.0 - 5.3.29
JoA�o dos Santos Videira