3v4l.org

run code in 300+ PHP versions simultaneously
<?php $number = 13000000; // Here's the function function formatter ($number) { $bil = floor ($number / 1000000000); $millions = $number % 1000000000; $mil = floor ($millions / 1000000); $thousands = $millions % 1000000; $thou = floor ($thousands / 1000); $str = ''; if ($bil != 0) { $str .= "{$bil} billions "; } if ($mil != 0) { $str .= "{$mil} millions "; } if ($thou != 0) { $str .= "{$thou} thousands "; } return $str; }
Output for git.master, git.master_jit, rfc.property-hooks

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