3v4l.org

run code in 300+ PHP versions simultaneously
<?php function newCode(string $uri): void { $host = parse_url($uri, PHP_URL_HOST); if ($host === false || $host === null) { echo "Could not detect any host in $uri\n"; return; } $host = strtolower(urldecode($host)); var_dump( $host, Normalizer::normalize($host, Normalizer::FORM_C), Normalizer::normalize($host, Normalizer::FORM_D), Normalizer::normalize($host, Normalizer::FORM_KC), Normalizer::normalize($host, Normalizer::FORM_KD), '--' ); } $addresses = [ 'https://⑯⑨。②⑤④。⑯⑨。②⑤④', 'https://⑯⑨。②⑤④。⑯⑨.②⑤④', ]; foreach ($addresses as $uri) { newCode($uri); }
Output for git.master, git.master_jit, rfc.property-hooks
string(39) "⑯⑨。②⑤④。⑯⑨。②⑤④" string(39) "⑯⑨。②⑤④。⑯⑨。②⑤④" string(39) "⑯⑨。②⑤④。⑯⑨。②⑤④" string(21) "169。254。169。254" string(21) "169。254。169。254" string(2) "--" string(37) "⑯⑨。②⑤④。⑯⑨.②⑤④" string(37) "⑯⑨。②⑤④。⑯⑨.②⑤④" string(37) "⑯⑨。②⑤④。⑯⑨.②⑤④" string(19) "169。254。169.254" string(19) "169。254。169.254" string(2) "--"

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:
130.35 ms | 406 KiB | 5 Q