3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = new \NumberFormatter("es_PE", \NumberFormatter::CURRENCY); echo $a->format(5673345.12345);
based on nc1ml
Output for 5.4.10 - 5.4.45, 5.5.17, 5.6.0 - 5.6.38, hhvm-3.10.1 - 3.22.0, 7.0.0 - 7.3.1
S/.5,673,345.12
Output for 5.3.20 - 5.3.29, 5.5.0 - 5.5.16, 5.5.18 - 5.5.38
Fatal error: Class 'NumberFormatter' not found in /in/MMRpd on line 3
Process exited with code 255.