3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump(html_entity_decode('&#xd800;')); var_dump(htmlentities('�'));
based on fN43c
Output for 5.4.0 - 5.6.28, 7.0.0 - 7.1.0
string(8) "&#xd800;" string(3) "�"
Output for hhvm-3.12.0
string(3) "�" string(3) "�"
Output for hhvm-3.10.0

Process exited with code 153.
Output for 4.3.0 - 5.3.29
string(8) "&#xd800;" string(22) "&iuml;&iquest;&frac12;"