3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump( mb_convert_encoding( $bin = hex2bin("8bcb9b46e6fc9bac82998f818aca816287b38aa9"), "UTF-8", "SJIS-mac" ), mb_check_encoding($bin, "SJIS-mac") );

preferences:
79.47 ms | 408 KiB | 5 Q