3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = deg2rad(90); $b =cos($a); var_export($a); var_export($b); echo "\n".sprintf('%F', $a)."\n";
based on kCDdC
Output for 5.6.28, 7.0.20 - 7.2.0
1.57079632679489666.123233995736766E-17 1.570796
Output for 5.4.22 - 5.6.21, 7.0.0 - 7.0.6
1.570796326794896557998986.12323399573676603586882E-17 1.570796
Output for 5.3.20 - 5.4.21
1.57079632679496.1232339957368E-17 1.570796