3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $x1 = 'Cl%C3%A9ment'; $x2 = 'Cl%E9ment'; $encoding_list = array('utf-8', 'iso-8859-1'); var_dump( mb_detect_encoding(urldecode($x1), $encoding_list), mb_detect_encoding(urldecode($x2), $encoding_list) );
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
string(5) "UTF-8" string(10) "ISO-8859-1"