3v4l.org

run code in 300+ PHP versions simultaneously
<?php $locale = array( 'decimal_point' => '.', 'thousands_sep' => '', 'int_curr_symbol' => 'EUR', 'currency_symbol' => '€', 'mon_decimal_point' => ',', 'mon_thousands_sep' => '.', 'positive_sign' => '', 'negative_sign' => '-', 'int_frac_digits' => 2, 'frac_digits' => 2, 'p_cs_precedes' => 0, 'p_sep_by_space' => 1, 'p_sign_posn' => 1, 'n_sign_posn' => 1, 'grouping' => array(), 'mon_grouping' => array(0 => 3, 1 => 3) ); setlocale(LC_MONETARY, "es_ES.UTF-8"); echo money_format('%=^-14#8.2i', 1234.563665) . "\n";

preferences:
35.26 ms | 402 KiB | 5 Q