3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $fmt = new NumberFormatter( 'sk_SK', NumberFormatter::CURRENCY ); echo $fmt->formatCurrency(1234567.891234567890000, "EUR")."\n"; echo $fmt->formatCurrency(1234567.891234567890000, "USD")."\n";
based on 2Jar0
Output for 5.6.0 - 5.6.30, hhvm-3.15.4, 7.0.0 - 7.2.6, 7.3.0rc3
1 234 567,89 € 1 234 567,89 USD
Output for 7.3.0alpha1 - 7.3.0beta1
Fatal error: Uncaught Error: Class 'NumberFormatter' not found in /in/JstY8:4 Stack trace: #0 {main} thrown in /in/JstY8 on line 4
Process exited with code 255.