3v4l.org

run code in 300+ PHP versions simultaneously
<?php $utf8Str = "❶❷❸❹❺"; $sjisStr = mb_convert_encoding($utf8Str, 'SJIS-mac'); echo(mb_detect_encoding($sjisStr, ['UTF-8','SJIS-mac', 'SJIS-win', 'SJIS']));

preferences:
47.62 ms | 459 KiB | 5 Q