3v4l.org

run code in 300+ PHP versions simultaneously
<?php // http://gathering.tweakers.net/forum/list_messages/1605981 // Just a char (http://www.fileformat.info/info/unicode/char/f1/index.htm) $char = 'ñ'; // Combining char (http://en.wikipedia.org/wiki/Combining_character) $charCombining = 'ñ'; $str = 'se'.$char.'or'; $strCombining = 'se'.$charCombining.'or'; var_dump($str, str_replace($char, 'n', $str)); //var_dump($strCombining, str_replace($char, 'n', $strCombining));

preferences:
41.21 ms | 402 KiB | 5 Q