3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump($r = idn_to_ascii( 'ශ්‍රී.com', IDNA_USE_STD3_RULES | IDNA_NONTRANSITIONAL_TO_ASCII | IDNA_CHECK_CONTEXTJ, INTL_IDNA_VARIANT_UTS46, $info )); var_dump($info); var_dump(idn_to_utf8($r, IDNA_USE_STD3_RULES, INTL_IDNA_VARIANT_UTS46, $info)); var_dump($info);
Output for git.master, git.master_jit, rfc.property-hooks
string(20) "xn--10cl1a0b660p.com" array(3) { ["result"]=> string(20) "xn--10cl1a0b660p.com" ["isTransitionalDifferent"]=> bool(true) ["errors"]=> int(0) } string(19) "ශ්‍රී.com" array(3) { ["result"]=> string(19) "ශ්‍රී.com" ["isTransitionalDifferent"]=> bool(false) ["errors"]=> int(0) }

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:
51.5 ms | 401 KiB | 8 Q