3v4l.org

run code in 200+ PHP versions simultaneously
<?php $fmt = numfmt_create('en_US', NumberFormatter::DECIMAL); numfmt_set_attribute($fmt, NumberFormatter::MIN_FRACTION_DIGITS, 2); echo numfmt_format_currency($fmt, 32.00, "EUR")."\n";
Output for 7.1.25 - 7.4.0
32.00