3v4l.org

run code in 500+ PHP versions simultaneously
<?php //invalid host but host string is >= 256 bytes var_dump(idn_to_ascii( '�@�����������������������������������������������������������������������������������������', IDNA_DEFAULT, INTL_IDNA_VARIANT_UTS46, $info ), $info); //invalid host with known error var_dump(idn_to_ascii( 'xn--bébé', IDNA_DEFAULT, INTL_IDNA_VARIANT_UTS46, $info ), $info); //valid host without error var_dump(idn_to_ascii( 'bébé', IDNA_DEFAULT, INTL_IDNA_VARIANT_UTS46, $info ), $info);
Output for git.master, git.master_jit, rfc.property-hooks
bool(false) array(0) { } bool(false) array(3) { ["result"]=> string(10) "xn--bébé" ["isTransitionalDifferent"]=> bool(false) ["errors"]=> int(256) } string(11) "xn--bb-bjab" array(3) { ["result"]=> string(11) "xn--bb-bjab" ["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.21 ms | 1561 KiB | 4 Q