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 />'; php_uname();
Output for 5.2.1 - 5.5.28, 5.5.31 - 5.5.33, 5.5.35 - 5.6.12, 5.6.16 - 5.6.19, 5.6.21 - 7.0.4, 7.0.6 - 7.1.0
209810563658809344<br />209810563658809343<br />355325317306527744<br />355325317306527743<br />
Output for 7.0.5
209810563658809344<br /> Fatal error: Uncaught Error: Call to undefined function bcsub() in /in/ASJIA:4 Stack trace: #0 {main} thrown in /in/ASJIA on line 4
Process exited with code 255.
Output for 5.5.29 - 5.5.30, 5.5.34, 5.6.13 - 5.6.15, 5.6.20
209810563658809344<br /> Fatal error: Call to undefined function bcsub() in /in/ASJIA on line 4
Process exited with code 255.
Output for 4.3.0 - 5.2.0
209810563658809350<br />209810563658809343<br />355325317306527750<br />355325317306527743<br />