< 10000000; $i++) { $result = 0.1 + 0.2; } $floatEnd = microtime(true); $bcStart = microtime(true); for ($i = 0; $i < 10000000; $i++) { $result = bcadd('0.1', '0.2', 1); } $bcEnd = microtime(true); echo 'float: ' . ($floatEnd - $floatStart) . "ms\n"; echo 'bcadd: ' . ($bcEnd - $bcStart) . "ms\n";