3v4l.org

run code in 500+ PHP versions simultaneously
<?php $string = "Café & 'quotes' and € euro"; // ISO-8859-1 mode var_dump( htmlentities($string, ENT_QUOTES, "big5")); // empty string var_dump( htmlentities($string, ENT_QUOTES, "xxx")); // default to utf8 // Caf&eacute; &amp; &#039;quotes&#039; and &euro; euro

preferences:
65.54 ms | 2852 KiB | 5 Q