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
Fatal error: Uncaught ValueError: bcadd(): Argument #1 ($num1) is not well-formed in /in/veQgt:5 Stack trace: #0 /in/veQgt(5): bcadd('2.123E-5', '5', 12) #1 {main} thrown in /in/veQgt on line 5
Process exited with code 255.

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