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
Output for rfc.property-hooks, git.master, git.master_jit
Notice: htmlentities(): Only basic entities substitution is supported for multi-byte encodings other than UTF-8; functionality is equivalent to htmlspecialchars in /in/1vaRr on line 6 string(0) "" Warning: htmlentities(): Charset "xxx" is not supported, assuming UTF-8 in /in/1vaRr on line 9 string(52) "Caf&eacute; &amp; &#039;quotes&#039; and &euro; euro"

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:
44.2 ms | 2851 KiB | 4 Q