3v4l.org

run code in 300+ PHP versions simultaneously
<?php foreach (['BG','EN','ES','DE','FR','FI','RU'] as $locale) { foreach (['SHORT', 'LONG'] as $type) { echo "$locale ", str_pad($type, 5), ": "; echo new NumberFormatter($locale, NumberFormatter::{"DECIMAL_COMPACT_$type"})->format(1200), "\n"; } echo "\n"; }
Output for git.master
BG SHORT: 1,2 хил. BG LONG : 1,2 хиляди EN SHORT: 1.2K EN LONG : 1.2 thousand ES SHORT: 1,2 mil ES LONG : 1,2 mil DE SHORT: 1200 DE LONG : 1,2 Tausend FR SHORT: 1,2 k FR LONG : 1,2 millier FI SHORT: 1,2 t. FI LONG : 1,2 tuhatta RU SHORT: 1,2 тыс. RU LONG : 1,2 тысячи

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:
134.85 ms | 995 KiB | 7 Q