3v4l.org

run code in 500+ PHP versions simultaneously
<?php $string = "éù"; var_dump( htmlentities($string, ENT_QUOTES, "big5")); $string = "Café & 'quotes' and € euro"; var_dump( htmlentities($string, ENT_QUOTES, "big5"));
Output for 8.2.31 - 8.2.36, 8.3.0 - 8.3.37, 8.4.1 - 8.4.28, 8.5.0 - 8.5.13, 8.6.0
Notice: htmlentities(): Only basic entities substitution is supported for multi-byte encodings other than UTF-8; functionality is equivalent to htmlspecialchars in /in/BYPMD on line 4 string(4) "éù" Notice: htmlentities(): Only basic entities substitution is supported for multi-byte encodings other than UTF-8; functionality is equivalent to htmlspecialchars in /in/BYPMD on line 7 string(0) ""

preferences:
33.38 ms | 1165 KiB | 6 Q