3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(Locale::setDefault('nonsense')); var_dump(Locale::getDefault()); var_dump(ini_get('intl.default_locale')); var_dump(ini_set('intl.default_locale', 'nonsense2')); var_dump(Locale::getDefault()); var_dump(ini_get('intl.default_locale'));

preferences:
64.51 ms | 402 KiB | 5 Q