3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = 'COLÃ?N 1391'; function normalize_str($str) { $invalid = array(''=>'S', ''=>'s', ''=>'Dj', ''=>'dj', ''=>'Z', ''=>'z', ''=>'C', ''=>'c', ''=>'C', ''=>'c', ''=>'A', ''=>'A', ''=>'A', ''=>'A', ''=>'A', ''=>'A', ''=>'A', ''=>'C', ''=>'E', ''=>'E', ''=>'E', ''=>'E', ''=>'I', ''=>'I', ''=>'I', ''=>'I', ''=>'N', ''=>'O', ''=>'O', ''=>'O', ''=>'O', ''=>'O', ''=>'O', ''=>'U', ''=>'U', ''=>'U', ''=>'U', ''=>'Y', ''=>'B', ''=>'Ss', ''=>'a', ''=>'a', ''=>'a', ''=>'a', ''=>'a', ''=>'a', ''=>'a', ''=>'c', ''=>'e', ''=>'e', ''=>'e', ''=>'e', ''=>'i', ''=>'i', ''=>'i', ''=>'i', ''=>'o', ''=>'n', ''=>'o', ''=>'o', ''=>'o', ''=>'o', ''=>'o', ''=>'o', ''=>'u', ''=>'u', ''=>'u', ''=>'y', ''=>'y', ''=>'b', ''=>'y', ''=>'R', ''=>'r', "`" => "'", "" => "'", "" => ",", "`" => "'", "" => "'", "" => "\"", "" => "\"", "" => "'", "&acirc;" => "'", "{" => "", "~" => "", "" => "-", "" => "'"); $str = str_replace(array_keys($invalid), array_values($invalid), $str); return $str; } echo nomrmalize_str($a);
based on i9HDA
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught Error: Call to undefined function nomrmalize_str() in /in/4IdPh:23 Stack trace: #0 {main} thrown in /in/4IdPh on line 23
Process exited with code 255.
Output for 5.3.17 - 5.6.28
Fatal error: Call to undefined function nomrmalize_str() in /in/4IdPh on line 23
Process exited with code 255.