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); $deg = 1; $rad = deg2rad($deg); printf("rad: %.20f = deg: %.f \n", $rad, $deg);
based on OSAbH
Output for 5.2.1 - 7.1.0
rad: 1.000000 = deg: 57.29577951308232286465 rad: 0.01745329251994329547 = deg: 1.000000
Output for 4.3.0 - 5.2.0
rad: 1.000000 = deg: 57.29577951308232286465 rad: 0.01745329251994329489 = deg: 1.000000