3v4l.org

run code in 300+ PHP versions simultaneously
<?php $n1 = '0.0000000100'; $n2 = '0.0000000200'; $sum = bcadd($n1, $n2, 10); printf("sum = %s", $sum);
Output for 5.6.0 - 5.6.40, 7.0.0 - 7.0.33, 7.1.0 - 7.1.33, 7.2.0 - 7.2.34, 7.3.0 - 7.3.33, 7.4.0 - 7.4.32, 8.0.0 - 8.0.30, 8.1.0 - 8.1.31, 8.2.0 - 8.2.27, 8.3.0 - 8.3.15, 8.4.1 - 8.4.2
sum = 0.0000000300
Output for 7.4.33
Fatal error: Uncaught Error: Call to undefined function bcadd() in /in/G933n:5 Stack trace: #0 {main} thrown in /in/G933n on line 5
Process exited with code 255.

preferences:
156.28 ms | 406 KiB | 5 Q