3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $str = 'Hitmakers Feat. KNA Connected 你啊好'; var_dump(mb_detect_encoding($str)); $str = mb_convert_encoding($str, 'utf-8','utf-8'); var_dump($str);
based on qBtTr
Output for 7.0.0 - 7.0.1
Parse error: syntax error, unexpected ',' (T_STRING), expecting ',' or ')' in /in/OJjUk on line 7
Process exited with code 255.
Output for 5.4.10 - 5.6.16
Parse error: syntax error, unexpected ',' (T_STRING) in /in/OJjUk on line 7
Process exited with code 255.
Output for 5.3.20 - 5.3.29
Parse error: syntax error, unexpected T_STRING in /in/OJjUk on line 7
Process exited with code 255.