3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "â€"; var_dump(html_entity_decode(utf8_decode($string), ENT_QUOTES, "UTF-8")); var_dump(mb_convert_encoding($string, "HTML-ENTITIES", "UTF-8"));
Output for git.master, git.master_jit, rfc.property-hooks
Deprecated: Function utf8_decode() is deprecated in /in/5Hn0E on line 5 string(2) "�?" Deprecated: mb_convert_encoding(): Handling HTML entities via mbstring is deprecated; use htmlspecialchars, htmlentities, or mb_encode_numericentity/mb_decode_numericentity instead in /in/5Hn0E on line 7 string(13) "&acirc;&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:
43.36 ms | 401 KiB | 8 Q