3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a =cos(deg2rad((-2 * (45 - 90)))); var_export($a); echo "\n".sprintf('%F', $a)."\n";
Output for 5.6.28, 7.0.20 - 7.2.0
6.123233995736766E-17 0.000000
Output for 5.4.22 - 5.6.21, 7.0.0 - 7.0.6
6.12323399573676603586882E-17 0.000000
Output for 5.3.20 - 5.4.21
6.1232339957368E-17 0.000000