3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php setlocale('en_US.utf8', LC_ALL); var_dump(escapeshellarg('hello worldé'));
Output for 7.0.0 - 7.1.0
Warning: setlocale() expects parameter 1 to be integer, string given in /in/YtvD9 on line 3 string(13) "'hello world'"
Output for hhvm-3.10.0 - 3.12.0
Warning: setlocale() expects parameter 1 to be integer, string given in /in/YtvD9 on line 3 string(15) "'hello worldé'"
Output for 5.3.0 - 5.6.28
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é'"
Output for 4.3.2 - 5.2.4
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é'"