3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = new \NumberFormatter("fr-FR", \NumberFormatter::PERCENT); echo $a->format(0.12); // outputs 12.345,12
based on FNrIa
Output for 7.3.0alpha1
Fatal error: Uncaught Error: Class 'NumberFormatter' not found in /in/1AMiK:3 Stack trace: #0 {main} thrown in /in/1AMiK on line 3
Process exited with code 255.
Output for 5.6.30, hhvm-3.18.5 - 3.22.0, 7.0.30 - 7.2.6
12 %