PHP 5.6.30 trigonometrical functions give funny results
Absolute values of sine and cosine functions may somehow exceed 1 when
argument is more then 2 * pi:
php5 -r 'echo sin(60);'
Result: 19880855899899
I tested the issue on two different machines, both x86 and x64 - result
is the same.
Command line calculator (bc) gives correct result of –0.30481062110222
PHP 5.6.30 on different platforms doesn’t reproduce the issue (see https://3v4l.org/fnd5R)
(from redmine: issue id 7159, created on 2017-04-16, closed on 2018-12-09)