3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = new \NumberFormatter("fr-FR", \NumberFormatter::CURRENCY); echo $a->format(12345.12345) . "<br>"; // outputs €12.345,12
Output for 5.6.0 - 5.6.30, hhvm-3.10.1 - 3.17.3, 7.0.0 - 7.2.0
12 345,12 €<br>
Output for 5.5.0 - 5.5.38
Fatal error: Class 'NumberFormatter' not found in /in/JO8s7 on line 3
Process exited with code 255.