Fatal error: Uncaught TypeError: setlocale(): Argument #1 ($category) must be of type int, string given in /in/YtvD9:3
Stack trace:
#0 /in/YtvD9(3): setlocale('en_US.utf8', 6)
#1 {main}
thrown in /in/YtvD9 on line 3
Process exited with code 255.
Output for 7.3.12 - 7.3.33, 7.4.0 - 7.4.33
Warning: setlocale() expects parameter 1 to be int, string given in /in/YtvD9 on line 3
string(13) "'hello world'"
Deprecated: setlocale(): Passing locale category name as string is deprecated. Use the LC_* -constants instead in /in/YtvD9 on line 3
Warning: setlocale(): Invalid locale category name en_US.utf8, must be one of LC_ALL, LC_COLLATE, LC_CTYPE, LC_MONETARY, LC_NUMERIC, or LC_TIME in /in/YtvD9 on line 3
string(13) "'hello world'"
Output for 5.2.6 - 5.2.17
Warning: setlocale(): Passing locale category name as string is deprecated. Use the LC_* -constants instead in /in/YtvD9 on line 3
Warning: setlocale(): Invalid locale category name en_US.utf8, must be one of LC_ALL, LC_COLLATE, LC_CTYPE, LC_MONETARY, LC_NUMERIC, or LC_TIME in /in/YtvD9 on line 3
string(13) "'hello world'"
Output for 5.2.5
Warning: setlocale(): Passing locale category name as string is deprecated. Use the LC_* -constants instead in /in/YtvD9 on line 3
Warning: setlocale(): Invalid locale category name en_US.utf8, must be one of LC_ALL, LC_COLLATE, LC_CTYPE, LC_MONETARY, LC_NUMERIC, or LC_TIME in /in/YtvD9 on line 3
string(15) "'hello worldé'"
Warning: setlocale(): Passing locale category name as string is deprecated. Use the LC_* -constants instead. in /in/YtvD9 on line 3
Warning: setlocale(): Invalid locale category name en_US.utf8, must be one of LC_ALL, LC_COLLATE, LC_CTYPE, LC_MONETARY, LC_NUMERIC, or LC_TIME. in /in/YtvD9 on line 3
string(15) "'hello worldé'"
Output for 4.3.0 - 4.3.1
Warning: setlocale() [http://www.php.net/function.setlocale]: Passing locale category name as string is deprecated. Use the LC_* -constants instead. in /in/YtvD9 on line 3
Warning: setlocale() [http://www.php.net/function.setlocale]: Invalid locale category name en_US.utf8, must be one of LC_ALL, LC_COLLATE, LC_CTYPE, LC_MONETARY, LC_NUMERIC, or LC_TIME. in /in/YtvD9 on line 3
string(15) "'hello worldé'"