3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $string_var = "μ"; $enc=mb_detect_encoding($string_var, "UTF-8,ISO-8859-1"); $string_var=mb_convert_encoding($string_var,"UTF-8",$enc); var_dump($string_var);
based on PRn4g
Output for 4.3.0 - 7.2.0
string(2) "μ"