3v4l.org

run code in 500+ PHP versions simultaneously
<?php var_dump(setlocale(LC_ALL, 'de_DE.ISO-8859-1')); echo bin2hex(str_ireplace(["\xE4", "\xF6", "\xFC"], ['1', '2', '3'], "\xE4\xC4 \xF6\xD6 \xFC\xDC")) . PHP_EOL;
Output for 7.2.0 - 7.2.34, 7.3.0 - 7.3.21, 7.4.0 - 7.4.10
string(16) "de_DE.ISO-8859-1" e4c420f6d620fcdc
Output for 7.3.23 - 7.3.33, 7.4.11 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.34
string(16) "de_DE.ISO-8859-1" 3131203232203333
Output for 8.2.0 - 8.2.34, 8.3.0 - 8.3.35, 8.4.1 - 8.4.26, 8.5.0 - 8.5.11
string(16) "de_DE.ISO-8859-1" 31c42032d62033dc

preferences:
37.54 ms | 1150 KiB | 15 Q