3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = '685484585478488466';$b = '1'; echo $text = bcadd($a, $b, 0); echo "\n"; echo $text = $a+$b; echo "\n"; echo number_format($text." ", 0, ".", "");
based on mePhG
Output for 5.3.0 - 5.4.45, 5.6.0 - 7.1.0
685484585478488467 685484585478488467 Notice: A non well formed numeric value encountered in /in/bVOK6 on line 8 685484585478488448
Output for 5.5.0 - 5.5.38
Fatal error: Call to undefined function bcadd() in /in/bVOK6 on line 4
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 5.2.1 - 5.2.17
685484585478488467 685484585478488467 685484585478488448
Output for 4.3.2 - 5.2.0
685484585478488467 685484585478488467 685484585478488500