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($locale); echo money_format('%=*^-14#8.2i', 1234.56) . "\n";
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught ArgumentCountError: setlocale() expects at least 2 arguments, 1 given in /in/2usgd:21 Stack trace: #0 /in/2usgd(21): setlocale(Array) #1 {main} thrown in /in/2usgd on line 21
Process exited with code 255.

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
42.83 ms | 401 KiB | 8 Q