3v4l.org

run code in 300+ PHP versions simultaneously
<?php function format_pln(float $price): string { $rounded = round($price, 2, PHP_ROUND_HALF_UP); return number_format($rounded, 2, ',', ' ') . ' zł'; } // example: echo format_pln(9104.6640); // 9 104,66 zł echo format_pln(2094.0727); // 2 094,07 zł echo format_pln(11198.7367); // 11 198,74 zł
Output for git.master_jit, git.master
9 104,66 zł2 094,07 zł11 198,74 zł

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:
27.02 ms | 405 KiB | 5 Q