3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $x = "Ao&ucirc;t - M&auml;rz 2008-August 2011"; $x = html_entity_decode( $x, ENT_COMPAT | ENT_HTML401, 'UTF-8' ); var_dump($x); $x = html_entity_decode( $x, ENT_COMPAT | ENT_HTML401, 'UTF-8' ); var_dump($x); $x = html_entity_decode( $x, ENT_COMPAT | ENT_HTML401, 'UTF-8' ); var_dump($x);
Output for 5.4.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
string(32) "Août - März 2008-August 2011" string(32) "Août - März 2008-August 2011" string(32) "Août - März 2008-August 2011"
Output for 5.3.0 - 5.3.29
Notice: Use of undefined constant ENT_HTML401 - assumed 'ENT_HTML401' in /in/Br3Cm on line 5 string(32) "Août - März 2008-August 2011" Notice: Use of undefined constant ENT_HTML401 - assumed 'ENT_HTML401' in /in/Br3Cm on line 8 string(32) "Août - März 2008-August 2011" Notice: Use of undefined constant ENT_HTML401 - assumed 'ENT_HTML401' in /in/Br3Cm on line 11 string(32) "Août - März 2008-August 2011"