3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $s = 'Tglich montags bis freitags'; #s = iconv('UTF-8', 'ISO-8859-1', $s); $encoding = mb_detect_encoding($s, 'UTF-8', true); $hex = bin2hex($s); var_dump($encoding); var_dump($hex);
Output for 4.3.3 - 7.1.0
string(5) "UTF-8" string(54) "54676c696368206d6f6e7461677320626973206672656974616773"
Output for 4.3.0 - 4.3.2
Warning: Wrong parameter count for mb_detect_encoding() in /in/aW5W8 on line 5 NULL string(54) "54676c696368206d6f6e7461677320626973206672656974616773"