3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $locale = 'it_CH'; $formatter = NumberFormatter::create($locale, NumberFormatter::CURRENCY); echo $formatter->formatCurrency(1000, 'CHF');
based on rQea7
Output for 5.4.10 - 5.4.45, 5.6.0 - 7.3.0
CHF 1'000.00
Output for 5.3.20 - 5.3.29, 5.5.0 - 5.5.38
Fatal error: Class 'NumberFormatter' not found in /in/bFlmt on line 5
Process exited with code 255.