3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $formatter = new NumberFormatter('en_US', NumberFormatter::CURRENCY); echo $formatter->formatCurrency(1234.56, '') . PHP_EOL; $formatter = new NumberFormatter('de_DE', NumberFormatter::CURRENCY); echo $formatter->formatCurrency(1234.56, 'USD');
based on DYAGg
Output for 7.3.0alpha1 - 7.3.0beta1
Fatal error: Uncaught Error: Class 'NumberFormatter' not found in /in/6sQIo:3 Stack trace: #0 {main} thrown in /in/6sQIo on line 3
Process exited with code 255.
Output for 5.6.0 - 5.6.30, hhvm-3.18.5 - 3.22.0, 7.0.0 - 7.2.6
1.234,56 $