3v4l.org

run code in 300+ PHP versions simultaneously
<?php $val = 123456699999876528; $float = $val / 100; $fm = new NumberFormatter('en_CA', NumberFormatter::CURRENCY); var_dump($val); var_dump($float); var_dump(sprintf('%f', $float)); var_dump($fm->formatCurrency($val, 'CAD')); var_dump($fm->formatCurrency($float, 'CAD'));
Output for git.master, git.master_jit, rfc.property-hooks
int(123456699999876528) float(1234566999998765.2) string(23) "1234566999998765.250000" string(27) "$123,456,699,999,877,000.00" string(25) "$1,234,566,999,998,770.00"

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:
38.38 ms | 401 KiB | 8 Q