3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump( bin2hex( htmlspecialchars( "\xf4\x90\xbf\xbf", ENT_COMPAT | ENT_HTML401, 'UTF-8' ) ) );

preferences:
41.94 ms | 402 KiB | 5 Q