3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo $str = "Coss&eacute; René &"; echo "\n"; echo htmlentities($str, ENT_XML1, "UTF-8", false); //echo "\n"; //echo htmlentities($str,ENT_XML1,"UTF-8"); echo "\n"; echo $str = html_entity_decode($str); echo "\n"; echo $str = htmlspecialchars(html_entity_decode($str,ENT_XML1)); echo ut8_decode("Coss￿ Ren�");
based on pbDWu
Output for 7.0.0 - 7.2.0
Coss&eacute; René & Coss&amp;eacute; René &amp; Cossé René & Cossé René &amp; Fatal error: Uncaught Error: Call to undefined function ut8_decode() in /in/nni7q:12 Stack trace: #0 {main} thrown in /in/nni7q on line 12
Process exited with code 255.
Output for 5.4.2 - 5.6.28
Coss&eacute; René & Coss&amp;eacute; René &amp; Cossé René & Cossé René &amp; Fatal error: Call to undefined function ut8_decode() in /in/nni7q on line 12
Process exited with code 255.
Output for 5.3.18 - 5.3.29
Coss&eacute; René & Notice: Use of undefined constant ENT_XML1 - assumed 'ENT_XML1' in /in/nni7q on line 4 Warning: htmlentities() expects parameter 2 to be long, string given in /in/nni7q on line 4 Coss� René & Notice: Use of undefined constant ENT_XML1 - assumed 'ENT_XML1' in /in/nni7q on line 10 Warning: html_entity_decode() expects parameter 2 to be long, string given in /in/nni7q on line 10 Fatal error: Call to undefined function ut8_decode() in /in/nni7q on line 12
Process exited with code 255.