3v4l.org

run code in 300+ 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 git.master_jit, git.master
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) ""

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
39.15 ms | 728 KiB | 4 Q