3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $output = bcadd('1023021930129302913', '20913019230291321321'); echo strlen(PHP_INT_MAX), ":", strlen($output), "\n"; echo number_format($output, 0, '.', ' ');
Output for 5.2.1 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
19:20 21 936 041 160 420 622 336
Output for 4.4.0 - 4.4.9, 5.0.5 - 5.2.0
19:20 21 936 041 160 420 625 000
Output for 4.3.2 - 4.3.11, 5.0.0 - 5.0.4
Notice: Use of undefined constant PHP_INT_MAX - assumed 'PHP_INT_MAX' in /in/eIDeu on line 4 11:20 21 936 041 160 420 625 000
Output for 4.3.0 - 4.3.1
Notice: Use of undefined constant PHP_INT_MAX - assumed 'PHP_INT_MAX' in /in/eIDeu on line 4 11:20 21 936 041 160 420 622 336