3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = 123.45; $b = 1; $str = 'ー'; var_dump(bin2hex($str)); $str_2 = mb_convert_encoding($str, 'SJIS-win', 'UTF-8'); var_dump($str); var_dump($str_2); var_dump(bin2hex($str_2)); ?>
based on bM5Z3
Output for 5.6.0 - 5.6.30, hhvm-3.18.5 - 3.22.0, 7.0.0 - 7.3.0beta1
string(6) "efbdb0" string(3) "ー" string(1) "�" string(2) "b0"