3v4l.org

run code in 300+ PHP versions simultaneously
<?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 git.master, git.master_jit
Warning: Undefined variable $row in /in/B8brl on line 3 Warning: Trying to access array offset on value of type null in /in/B8brl on line 3 Deprecated: strip_tags(): Passing null to parameter #1 ($string) of type string is deprecated in /in/B8brl on line 3 Deprecated: Function utf8_decode() is deprecated in /in/B8brl on line 5 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 rfc.property-hooks
Warning: Undefined variable $row in /in/B8brl on line 3 Warning: Trying to access array offset on null in /in/B8brl on line 3 Deprecated: strip_tags(): Passing null to parameter #1 ($string) of type string is deprecated in /in/B8brl on line 3 Deprecated: Function utf8_decode() is deprecated in /in/B8brl on line 5 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.

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
46.06 ms | 401 KiB | 8 Q