3v4l.org

run code in 300+ PHP versions simultaneously
<?php $f = '0'; for($i=0; $i < 10000; $i++) { $f = bcadd($f, '0.01', 2); } var_dump($f);
Output for 8.0.1 - 8.0.26, 8.1.0 - 8.1.14, 8.2.0 - 8.2.1
string(6) "100.00"

preferences:
22.29 ms | 406 KiB | 5 Q