3v4l.org

run code in 300+ PHP versions simultaneously
<?php header('Content-type:text/html; charset=utf-8'); echo mb_convert_encoding('&#x2665;', 'UTF-8', 'HTML-ENTITIES');

preferences:
38.14 ms | 402 KiB | 5 Q