3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $value = utf8_encode("my Ütger"); var_dump($value); var_dump(iconv("UTF-8", "UTF-8//IGNORE", $value)); var_dump(utf8_Decode($value)); var_dump(utf8_Decode(utf8_Decode($value)));
Output for 5.0.0 - 5.5.34, 5.6.0 - 7.1.0
string(11) "my Ütger" string(11) "my Ütger" string(9) "my Ütger" string(8) "my �tger"
Output for 5.5.35 - 5.5.38
string(11) "my Ütger" Fatal error: Call to undefined function iconv() in /in/dI4D1 on line 4
Process exited with code 255.
Output for 4.4.5 - 4.4.9
string(11) "my Ütger" Fatal error: Call to undefined function: iconv() in /in/dI4D1 on line 4
Process exited with code 255.
Output for 4.3.2 - 4.4.4
string(11) "my Ütger" Fatal error: Call to undefined function: iconv() in /in/dI4D1 on line 4
Process exited with code 255.
Output for 4.3.0 - 4.3.1
string(11) "my Ütger" Fatal error: Call to undefined function: iconv() in /in/dI4D1 on line 4