3v4l.org

run code in 300+ PHP versions simultaneously
<?php // $n1 > 10^10 $n1 = new \BcMath\Number('100000000000'); $n2 = new \BcMath\Number('1'); echo $n2->div($n1) . "\n"; echo bcdiv($n2, $n1, 11). "\n\n"; // $n1 <= 10^10 $n1 = new \BcMath\Number('10000000000'); $n2 = new \BcMath\Number('1'); echo $n2->div($n1) . "\n"; echo bcdiv($n2, $n1, 11);
Output for git.master, git.master_jit
0 0.00000000001 0.0000000001 0.00000000010

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