3v4l.org

run code in 300+ PHP versions simultaneously
<?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�");

preferences:
50.67 ms | 402 KiB | 5 Q