3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $val = "209810563658809344"; echo sprintf('%0.0f', ($val - 1)) . '<br />'; echo bcsub($val, 1) . '<br />'; $val = "355325317306527744"; echo sprintf('%0.0f', ($val - 1)) . '<br />'; echo bcsub($val, 1) . '<br />';
Output for 5.2.1 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
209810563658809344<br />209810563658809343<br />355325317306527744<br />355325317306527743<br />
Output for 4.3.0 - 5.2.0
209810563658809350<br />209810563658809343<br />355325317306527750<br />355325317306527743<br />