3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $formatter = new \NumberFormatter('de_CH', \NumberFormatter::CURRENCY); $format = $formatter->getPattern(); $decimalSymbol = $formatter->getSymbol(\NumberFormatter::DECIMAL_SEPARATOR_SYMBOL); $groupSymbol = $formatter->getSymbol(\NumberFormatter::GROUPING_SEPARATOR_SYMBOL); echo $format . ' ' . $decimalSymbol . ' ' . $groupSymbol;
Output for 5.6.0 - 5.6.30, hhvm-3.15.4, 7.0.0 - 7.0.18, 7.1.0 - 7.1.4, 7.1.20, 7.2.6
¤ #,##0.00;¤-#,##0.00 . '
Output for 7.0.19 - 7.0.20, 7.1.5 - 7.1.10, 7.2.0
¤ #,##0.00;¤-#,##0.00 . ’