3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php print_r(htmlspecialchars(unichr(8721))); function unichr($u) { return mb_convert_encoding('&#' . intval($u) . ';', 'UTF-8', 'HTML-ENTITIES'); }
based on RCn7R
Output for 4.3.0 - 7.1.0