3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = 'asdf&ddddd"fancy˝quotes˝'; echo htmlspecialchars($text, ENT_COMPAT | ENT_HTML401, 'UTF7') . "\n"; // Output: asdf&amp;ddddd&quot;fancyË echo htmlentities($text, ENT_COMPAT | ENT_HTML401, 'UTF7') . "\n"; // Output: asdf&amp;ddddd&quot;fancy&Euml;quotes
Output for git.master, git.master_jit, rfc.property-hooks
Warning: htmlspecialchars(): Charset "UTF7" is not supported, assuming UTF-8 in /in/XuIp1 on line 4 asdf&amp;ddddd&quot;fancy˝quotes˝ Warning: htmlentities(): Charset "UTF7" is not supported, assuming UTF-8 in /in/XuIp1 on line 7 asdf&amp;ddddd&quot;fancy˝quotes˝

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.02 ms | 402 KiB | 8 Q