3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump( $conv = mb_convert_encoding( $bin = hex2bin("7e0a"), "HZ", "ASCII" ), mb_check_encoding($bin, "ASCII"), bin2hex(mb_convert_encoding($conv, "ASCII", "HZ")) );

preferences:
24.77 ms | 408 KiB | 5 Q