3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $rad = 1; $deg = rad2deg($rad); printf("rad: %.f = deg: %.20f \n", $rad, $deg); $rad2deg = 57.295779513082320876798161804285; printf("rad: %.f = deg: %.20f \n", $rad, $rad * $rad2deg);
based on O7tdn
Output for 4.3.0 - 7.1.0
rad: 1.000000 = deg: 57.29577951308232286465 rad: 1.000000 = deg: 57.29577951308232286465