3v4l.org

run code in 300+ PHP versions simultaneously
<?php $formatter = NumberFormatter::create("en-US", NumberFormatter::DEFAULT_STYLE, null); $formatter->setAttribute(NumberFormatter::FRACTION_DIGITS, 2); print $formatter->format(60.65); print "\n"; print $formatter->format(0 + "60.65"); print "\n"; $formatter->setAttribute(NumberFormatter::FRACTION_DIGITS, 0); $formatter->setAttribute(NumberFormatter::ROUNDING_MODE, NumberFormatter::ROUND_HALFUP); print $formatter->format(60.65); print "\n"; print $formatter->format("60.65"); print "\n";
Output for git.master, git.master_jit, rfc.property-hooks
60.65 60.65 61 61

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.68 ms | 401 KiB | 8 Q