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") );
Output for 8.1.0 - 8.1.13, 8.2rc1 - rc3
string(30) "桐妲蹊岻y潤缶|㌦勧" bool(true)
Output for 7.4.0 - 7.4.33, 8.0.1 - 8.0.26
string(30) "桐妲蹊岻y潤缶|㌦勧" bool(false)

preferences:
45.5 ms | 420 KiB | 16 Q