3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php for($i=0;$i<360;$i=$i+5) echo round(cos(deg2rad($i)),2).", ";
Output for 4.3.0 - 5.3.3, 5.3.7 - 5.6.28, 7.0.0 - 7.1.0
1, 1, 0.98, 0.97, 0.94, 0.91, 0.87, 0.82, 0.77, 0.71, 0.64, 0.57, 0.5, 0.42, 0.34, 0.26, 0.17, 0.09, 0, -0.09, -0.17, -0.26, -0.34, -0.42, -0.5, -0.57, -0.64, -0.71, -0.77, -0.82, -0.87, -0.91, -0.94, -0.97, -0.98, -1, -1, -1, -0.98, -0.97, -0.94, -0.91, -0.87, -0.82, -0.77, -0.71, -0.64, -0.57, -0.5, -0.42, -0.34, -0.26, -0.17, -0.09, -0, 0.09, 0.17, 0.26, 0.34, 0.42, 0.5, 0.57, 0.64, 0.71, 0.77, 0.82, 0.87, 0.91, 0.94, 0.97, 0.98, 1,
Output for 5.3.4 - 5.3.6, hhvm-3.10.0 - 3.12.0
1, 1, 0.98, 0.97, 0.94, 0.91, 0.87, 0.82, 0.77, 0.71, 0.64, 0.57, 0.5, 0.42, 0.34, 0.26, 0.17, 0.09, 0, -0.09, -0.17, -0.26, -0.34, -0.42, -0.5, -0.57, -0.64, -0.71, -0.77, -0.82, -0.87, -0.91, -0.94, -0.97, -0.98, -1, -1, -1, -0.98, -0.97, -0.94, -0.91, -0.87, -0.82, -0.77, -0.71, -0.64, -0.57, -0.5, -0.42, -0.34, -0.26, -0.17, -0.09, 0, 0.09, 0.17, 0.26, 0.34, 0.42, 0.5, 0.57, 0.64, 0.71, 0.77, 0.82, 0.87, 0.91, 0.94, 0.97, 0.98, 1,