3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = '20000000'; $b = '0.0000003'; echo bcsub($a, $b, 100); // -3
Output for 5.6.38 - 7.2.11, 7.3.0rc1 - 7.3.0rc3
19999999.9999997000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
Output for 7.3.0alpha1 - 7.3.0beta3
Fatal error: Uncaught Error: Call to undefined function bcsub() in /in/kPnZt:6 Stack trace: #0 {main} thrown in /in/kPnZt on line 6
Process exited with code 255.