3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $formatter = new NumberFormatter('en_GB', NumberFormatter::CURRENCY); echo 'UK: ', $formatter->formatCurrency($amount, 'EUR'), PHP_EOL;
Output for 7.1.7
UK: Notice: Undefined variable: amount in /in/CufCj on line 3 €0.00
Output for 5.1.1
Fatal error: Class 'NumberFormatter' not found in /in/CufCj on line 2
Process exited with code 255.