3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump(`locale -a`); var_dump(`nlsinfo`); var_dump(`ls /usr/lib/nls/loc`); var_dump(`ls /usr/lib/locale`); var_dump(`ls /usr/lib/nls`); var_dump(`ls /usr/share/locale`); var_dump(setlocale(LC_MONETARY, 'de_DE')); var_dump(money_format('%=*^-14#8.2i', 234568)); // outputs "**234568.00" var_dump(setlocale(LC_MONETARY, 'de_ZA')); var_dump(money_format('%=*^-14#8.2i', 2334)); // outputs "****2334.00"
based on M5H9e
Output for 5.4.39 - 5.6.28, 7.0.0 - 7.1.0
NULL NULL NULL NULL NULL NULL bool(false) string(14) " **234568.00 " bool(false) string(14) " ****2334.00 "
Output for hhvm-3.10.0 - 3.12.0
string(28) "Failed to exec: `locale -a' " string(26) "Failed to exec: `nlsinfo' " string(38) "Failed to exec: `ls /usr/lib/nls/loc' " string(37) "Failed to exec: `ls /usr/lib/locale' " string(34) "Failed to exec: `ls /usr/lib/nls' " string(39) "Failed to exec: `ls /usr/share/locale' " bool(false) string(14) " **234568.00 " bool(false) string(14) " ****2334.00 "
Output for 5.0.0 - 5.0.5, 5.1.1 - 5.4.38
string(8) "C POSIX " NULL NULL NULL NULL NULL bool(false) string(14) " **234568.00 " bool(false) string(14) " ****2334.00 " sh: 1: nlsinfo: not found sh: 1: ls: not found sh: 1: ls: not found sh: 1: ls: not found sh: 1: ls: not found
Output for 5.1.0
Fatal error: fatal flex scanner internal error--end of buffer missed in /in/JMpnE on line 17
Process exited with code 255.
Output for 4.3.1 - 4.4.9
string(8) "C POSIX " string(0) "" string(0) "" string(0) "" string(0) "" string(0) "" bool(false) string(14) " **234568.00 " bool(false) string(14) " ****2334.00 " sh: 1: nlsinfo: not found sh: 1: ls: not found sh: 1: ls: not found sh: 1: ls: not found sh: 1: ls: not found
Output for 4.3.0
string(0) "" string(0) "" string(0) "" string(0) "" string(0) "" string(0) "" bool(false) string(14) " **234568.00 " bool(false) string(14) " ****2334.00 "