3v4l.org

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