3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = "0.00002123"; $calculation1 = bcadd($x,5,12); // adding variable $x to 5 $calculation2 = bcmul($x,4,12); // multiply variable $x to 4 $calculation3 = bcdiv($x,5,12); // divide variable $x to 5 var_dump($calculation1, $calculation1, $calculation3);
Output for git.master, git.master_jit, rfc.property-hooks
string(14) "5.000021230000" string(14) "5.000021230000" string(14) "0.000004246000"

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