3v4l.org

run code in 500+ PHP versions simultaneously
<?php declare(strict_types=1); error_reporting(E_ALL); $testText = <<<EOT <p>https://umlaut.domäne.tld/path-witm-german-umlaut-ä-in-it/</p> This is just a test, to test converting german <a href="https://umlaut.domäne.tld/path-witm-german-umlaut-ä-in-it/">umlaut</a links. EOT; var_dump(idn_to_ascii($testText));
Output for 8.5.1 - 8.5.12, 7.4.33
Fatal error: Uncaught Error: Call to undefined function idn_to_ascii() in /in/AJHJd:10 Stack trace: #0 {main} thrown in /in/AJHJd on line 10
Process exited with code 255.
Output for 8.0.1 - 8.0.30, 8.1.0 - 8.1.34, 8.2.0 - 8.2.36, 8.3.0 - 8.3.37, 8.4.1 - 8.4.28, 8.5.0, 7.4.0 - 7.4.32
bool(false)

preferences:
17.14 ms | 1173 KiB | 6 Q