3v4l.org

run code in 300+ PHP versions simultaneously
<?php $html = <<<EOD <html> <p> <a href="http://google.com/?q=あいうえお" title="<'あいうえお'>">"&"<br> </html> EOD; $html = mb_convert_encoding($html, 'HTML-ENTITIES', 'UTF-8'); $dom = new DOMDocument(); @$dom->loadHTML($html); $html = $dom->saveHTML(); echo $html; exit;
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/8pTXi on line 8 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd"> <html><body><p> <a href="http://google.com/?q=%E3%81%82%E3%81%84%E3%81%86%E3%81%88%E3%81%8A" title="&lt;'&#12354;&#12356;&#12358;&#12360;&#12362;'&gt;">"&amp;"<br></a></p></body></html>

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