3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $rad = 1; $deg = rad2deg($rad); printf("rad: %.f = deg: %.25f \n", $rad, $deg); $deg = 1; $rad = deg2rad($deg); printf("rad: %.25f = deg: %.f \n", $rad, $deg);
based on LrQUt
Output for 5.2.1 - 5.6.28, 7.0.0 - 7.1.0
rad: 1.000000 = deg: 57.2957795130823228646477219 rad: 0.0174532925199432954743717 = deg: 1.000000
Output for hhvm-3.10.0 - 3.12.0
rad: 1.000000 = deg: 57.2957795130821949669552851 rad: 0.0174532925199433336382882 = deg: 1.000000
Output for 4.3.0 - 5.2.0
rad: 1.000000 = deg: 57.2957795130823228646477219 rad: 0.0174532925199432948915046 = deg: 1.000000