3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php for($a=0;$a<360;$a=$a+6) echo round(cos(deg2rad($a)),5) . ",";
Output for 4.3.0 - 5.3.3, 5.3.7 - 7.1.0
1,0.99452,0.97815,0.95106,0.91355,0.86603,0.80902,0.74314,0.66913,0.58779,0.5,0.40674,0.30902,0.20791,0.10453,0,-0.10453,-0.20791,-0.30902,-0.40674,-0.5,-0.58779,-0.66913,-0.74314,-0.80902,-0.86603,-0.91355,-0.95106,-0.97815,-0.99452,-1,-0.99452,-0.97815,-0.95106,-0.91355,-0.86603,-0.80902,-0.74314,-0.66913,-0.58779,-0.5,-0.40674,-0.30902,-0.20791,-0.10453,-0,0.10453,0.20791,0.30902,0.40674,0.5,0.58779,0.66913,0.74314,0.80902,0.86603,0.91355,0.95106,0.97815,0.99452,
Output for 5.3.4 - 5.3.6
1,0.99452,0.97815,0.95106,0.91355,0.86603,0.80902,0.74314,0.66913,0.58779,0.5,0.40674,0.30902,0.20791,0.10453,0,-0.10453,-0.20791,-0.30902,-0.40674,-0.5,-0.58779,-0.66913,-0.74314,-0.80902,-0.86603,-0.91355,-0.95106,-0.97815,-0.99452,-1,-0.99452,-0.97815,-0.95106,-0.91355,-0.86603,-0.80902,-0.74314,-0.66913,-0.58779,-0.5,-0.40674,-0.30902,-0.20791,-0.10453,0,0.10453,0.20791,0.30902,0.40674,0.5,0.58779,0.66913,0.74314,0.80902,0.86603,0.91355,0.95106,0.97815,0.99452,