3v4l.org

run code in 300+ PHP versions simultaneously
<?php $formatter = new NumberFormatter('en_US', NumberFormatter::CURRENCY); echo $formatter->formatCurrency(21212gf1212, 'USD'), PHP_EOL;
Output for 7.0.0 - 7.0.31, 7.1.0 - 7.1.21, 7.2.0 - 7.2.9
Parse error: syntax error, unexpected 'gf1212' (T_STRING), expecting ',' or ')' in /in/63alo on line 3
Process exited with code 255.

preferences:
189.62 ms | 1395 KiB | 71 Q