3v4l.org

run code in 300+ PHP versions simultaneously
<?php $value = 0.000000000014; $end = str_replace(".", "", explode("E-", $value)[0]); Preg_match("/\.\d+" . $end ."/", number_format($value, 100), $match); $decimal = strlen($match[0])-1; Echo "fixed 50 decimals\t" .number_format($value, 50) . "\n"; Echo "calculated decimals\t" .number_format($value, $decimal);
Output for git.master, git.master_jit, rfc.property-hooks
fixed 50 decimals 0.00000000001400000000000000012230985028273665951234 calculated decimals 0.000000000014

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