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) var_dump(htmlentities(html_entitiy_decode('&#xd800;')));
based on hUEAo
Output for 7.0.0 - 7.1.0
string(8) "&#xd800;" string(3) "�" Fatal error: Uncaught Error: Call to undefined function html_entitiy_decode() in /in/IYcbE:5 Stack trace: #0 {main} thrown in /in/IYcbE on line 5
Process exited with code 255.
Output for hhvm-3.12.0
string(3) "�" string(3) "�" Fatal error: Call to undefined function html_entitiy_decode() in /in/IYcbE on line 5
Process exited with code 255.
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.4.0 - 5.6.28
string(8) "&#xd800;" string(3) "�" Fatal error: Call to undefined function html_entitiy_decode() in /in/IYcbE on line 5
Process exited with code 255.
Output for 5.0.0 - 5.3.29
string(8) "&#xd800;" string(22) "&iuml;&iquest;&frac12;" Fatal error: Call to undefined function html_entitiy_decode() in /in/IYcbE on line 5
Process exited with code 255.
Output for 4.4.5 - 4.4.9
string(8) "&#xd800;" string(22) "&iuml;&iquest;&frac12;" Fatal error: Call to undefined function: html_entitiy_decode() in /in/IYcbE on line 5
Process exited with code 255.
Output for 4.3.2 - 4.4.4
string(8) "&#xd800;" string(22) "&iuml;&iquest;&frac12;" Fatal error: Call to undefined function: html_entitiy_decode() in /in/IYcbE on line 5
Process exited with code 255.
Output for 4.3.0 - 4.3.1
string(8) "&#xd800;" string(22) "&iuml;&iquest;&frac12;" Fatal error: Call to undefined function: html_entitiy_decode() in /in/IYcbE on line 5