3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $text = strip_tags($row['text']); $text_ohne_leerzeichen = trim($text); $text_utf8 = utf8_decode($text_ohne_leerzeichen); $text_decode = html_entity_decode($text_utf8); $text_replaced = ereg_replace(' ', '', $text_decode); $text_replaced = str_replace("&#39;", "'", $text_replaced); /* $text_replaced = str_replace("ü", "ü", $text_replaced); $text_replaced = str_replace("ä", "ä", $text_replaced); $text_replaced = str_replace("ö", "ö", $text_replaced); $text_replaced = str_replace("Â", "", $text_replaced); $text_replaced = str_replace("é", "é", $text_replaced);*/ $replace = array( 'ü'=>'ü', 'ä'=>'ä', 'ö'=>'ö', 'Ö'=>'Ö', 'ß'=>'ß', 'à '=>'à', 'á'=>'á', 'â'=>'â', 'ã'=>'ã', 'ù'=>'ù', 'ú'=>'ú', 'û'=>'û', 'Ù'=>'Ù', 'Ú'=>'Ú', 'Û'=>'Û', 'Ãœ'=>'Ü', 'ò'=>'ò', 'ó'=>'ó', 'ô'=>'ô', 'è'=>'è', 'é'=>'é', 'ê'=>'ê', 'ë'=>'ë', 'À'=>'À', 'Á'=>'Á', 'Â'=>'Â', 'Ã'=>'Ã', 'Ä'=>'Ä', 'Ã…'=>'Å', 'Ç'=>'Ç', 'È'=>'È', 'É'=>'É', 'Ê'=>'', 'Ë'=>'Ë', 'ÃŒ'=>'Ì', 'Í'=>'Í', 'ÃŽ'=>'Î', 'Ï'=>'Ï', 'Ñ'=>'Ñ', 'Ã’'=>'Ò', 'Ó'=>'Ó', 'Ô'=>'Ô', 'Õ'=>'Õ', 'Ø'=>'Ø', 'Ã¥'=>'å', 'æ'=>'æ', 'ç'=>'ç', 'ì'=>'ì', 'í'=>'í', 'î'=>'î', 'ï'=>'ï', 'ð'=>'ð', 'ñ'=>'ñ', 'õ'=>'õ', 'ø'=>'ø', 'ý'=>'ý', 'ÿ'=>'ÿ', '€'=>'€' ); foreach ($replace as $key => $value) { $text_replaced = str_replace($key, $value, $text_replaced); }
Output for 7.0.0 - 7.2.0
Notice: Undefined variable: row in /in/B8brl on line 3 Fatal error: Uncaught Error: Call to undefined function ereg_replace() in /in/B8brl:7 Stack trace: #0 {main} thrown in /in/B8brl on line 7
Process exited with code 255.
Output for 5.3.18 - 5.6.28
Notice: Undefined variable: row in /in/B8brl on line 3 Deprecated: Function ereg_replace() is deprecated in /in/B8brl on line 7