3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php header('Content-type:text/html; charset=utf-8'); echo mb_convert_encoding('&hearts;', 'UTF-8', 'HTML-ENTITIES'); echo mb_convert_encoding('&#9829;', 'UTF-8', 'HTML-ENTITIES'); echo mb_convert_encoding('&#x2665;', 'UTF-8', 'HTML-ENTITIES');
Output for 5.2.11 - 5.2.17, 5.3.1 - 7.1.0
♥♥♥
Output for 4.3.0 - 5.0.2, 5.0.4 - 5.2.10, 5.3.0
♥♥򰛩
Output for 5.0.3

Process exited with code 139.