3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $valor = "Joao dos Santos Videira"; echo str_replace(" ","_",preg_replace("/&([a-z])[a-z]+;/i", "$1", htmlentities($valor)));
Output for 4.3.0 - 7.1.0
Joao_dos_Santos_Videira