3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $var = "Mélanie"; $var = stripAccents($string); echo "<br />".$var; function stripAccents($string){ $texte = str_replace( array('à','â','ä','á','ã','å','î','ï','ì','í','ô','ö','ò','ó','õ','ø','ù','û','ü','ú','é','è','ê','ë','ç','ÿ','ñ','À','Á','Â','Ã','Ä','Ç','È','É','Ê','Ë','Ì','Í','Î','Ï','Ñ','Ò','Ó','Ô','Õ','Ö','Ù','Ú','Û','Ü','Ý'), array('a','a','a','a','a','a','i','i','i','i','o','o','o','o','o','o','u','u','u','u','e','e','e','e','c','y','n','A','A','A','A','A','C','E','E','E','E','I','I','I','I','N','O','O','O','O','O','U','U','U','U','Y'), $string ); return $texte; }
Output for 5.0.4 - 7.2.0
Notice: Undefined variable: string in /in/LvK8p on line 4 <br />
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: string in /in/LvK8p on line 4 <br />