3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = -0.05648055; $b = -0.00000545; var_dump($a); $c = bcadd($a,$b,9); $d = $a+$b; echo $c; // => -0.05648055 <- WRONG echo $d; // => -0.056486 <- CORRECT
Output for git.master, git.master_jit, rfc.property-hooks
float(-0.05648055) Fatal error: Uncaught ValueError: bcadd(): Argument #2 ($num2) is not well-formed in /in/O9ptl:7 Stack trace: #0 /in/O9ptl(7): bcadd('-0.05648055', '-5.45E-6', 9) #1 {main} thrown in /in/O9ptl on line 7
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:
44.76 ms | 401 KiB | 8 Q