3v4l.org

run code in 300+ PHP versions simultaneously
<?php $html = "<td>&lt;h1&gt;Katowice =&lt; Krakow &lt;/h1&gt;</td>"; //$html = "<p><span>Copyright © 2008 Your Company Name</span>"; $html = mb_convert_encoding($html, 'HTML-ENTITIES', "UTF-8"); //$html = htmlspecialchars($html); print $html."\n"; //$html = htmlspecialchars_decode($html); //$html = mb_convert_encoding($html, "UTF-8", 'HTML-ENTITIES'); print $html;
Output for git.master, git.master_jit, rfc.property-hooks
Deprecated: mb_convert_encoding(): Handling HTML entities via mbstring is deprecated; use htmlspecialchars, htmlentities, or mb_encode_numericentity/mb_decode_numericentity instead in /in/SbRg0 on line 6 <td>&lt;h1&gt;Katowice =&lt; Krakow &lt;/h1&gt;</td> <td>&lt;h1&gt;Katowice =&lt; Krakow &lt;/h1&gt;</td>

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:
59.67 ms | 402 KiB | 8 Q