3v4l.org

run code in 300+ PHP versions simultaneously
<?php mb_substitute_character("long"); var_dump( $conv = mb_convert_encoding( $bin = hex2bin("7FFFFFFF"), "UTF-8", "CP932" ), mb_check_encoding($bin, "CP932"), bin2hex(mb_convert_encoding($conv, "CP932", "UTF-8")) );

preferences:
36.95 ms | 402 KiB | 5 Q