3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php putenv('LANG=ja_JP.UTF-8'); putenv('LC_ALL='); setlocale(LC_ALL, 'C'); var_dump(setlocale(LC_ALL, "0")); var_dump(gethostbynamel("xxx.invalid")); var_dump(setlocale(LC_ALL, "0"));
based on t6TTT
Output for 4.3.0 - 5.4.25, 5.4.27 - 7.2.0
string(1) "C" bool(false) string(1) "C"
Output for 5.4.26

Process exited with code 137.