3v4l.org

run code in 300+ PHP versions simultaneously
<?php 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"
Output for 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
string(5) "de_DE" Fatal error: Uncaught Error: Call to undefined function money_format() in /in/M5H9e:3 Stack trace: #0 {main} thrown in /in/M5H9e on line 3
Process exited with code 255.
Output for 7.4.3 - 7.4.33
string(5) "de_DE" Deprecated: Function money_format() is deprecated in /in/M5H9e on line 3 string(16) " **234568,00 EUR" bool(false) Deprecated: Function money_format() is deprecated in /in/M5H9e on line 7 string(16) " ****2334,00 EUR"
Output for 7.4.0
bool(false) Deprecated: Function money_format() is deprecated in /in/M5H9e on line 3 string(14) " **234568.00 " bool(false) Deprecated: Function money_format() is deprecated in /in/M5H9e on line 7 string(14) " ****2334.00 "
Output for 7.2.29 - 7.2.33, 7.3.16 - 7.3.33
string(5) "de_DE" string(16) " **234568,00 EUR" bool(false) string(16) " ****2334,00 EUR"
Output for 4.3.0 - 4.3.11, 4.4.0 - 4.4.9, 5.0.0 - 5.0.5, 5.1.1 - 5.1.6, 5.2.0 - 5.2.17, 5.3.0 - 5.3.29, 5.4.0 - 5.4.45, 5.5.24 - 5.5.35, 5.6.8 - 5.6.28, 7.0.0 - 7.0.20, 7.1.0 - 7.1.10, 7.2.0, 7.3.12
bool(false) string(14) " **234568.00 " bool(false) string(14) " ****2334.00 "
Output for 5.1.0
Fatal error: fatal flex scanner internal error--end of buffer missed in /in/M5H9e on line 8
Process exited with code 255.

preferences:
236.4 ms | 401 KiB | 310 Q