3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump(html_entity_decode('&#xd800;')); var_dump(htmlentities('�')); // value from above (hhvm output)
based on gHUVJ
Output for 5.4.0 - 5.6.28, 7.0.0 - 7.1.0
string(8) "&#xd800;" string(3) "�"
Output for hhvm-3.10.0 - 3.12.0
string(3) "�" string(3) "�"
Output for 4.3.0 - 5.0.5, 5.1.1 - 5.3.29
string(8) "&#xd800;" string(22) "&iuml;&iquest;&frac12;"
Output for 5.1.0
Fatal error: fatal flex scanner internal error--end of buffer missed in /in/hUEAo on line 4
Process exited with code 255.