3v4l.org

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