3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php for($a=0;$a<360;$a=$a+6) echo deg2rad($a) . ",";
Output for 4.3.0 - 7.1.0
0,0.10471975511966,0.20943951023932,0.31415926535898,0.41887902047864,0.5235987755983,0.62831853071796,0.73303828583762,0.83775804095728,0.94247779607694,1.0471975511966,1.1519173063163,1.2566370614359,1.3613568165556,1.4660765716752,1.5707963267949,1.6755160819146,1.7802358370342,1.8849555921539,1.9896753472735,2.0943951023932,2.1991148575129,2.3038346126325,2.4085543677522,2.5132741228718,2.6179938779915,2.7227136331112,2.8274333882308,2.9321531433505,3.0368728984701,3.1415926535898,3.2463124087095,3.3510321638291,3.4557519189488,3.5604716740684,3.6651914291881,3.7699111843078,3.8746309394274,3.9793506945471,4.0840704496667,4.1887902047864,4.2935099599061,4.3982297150257,4.5029494701454,4.607669225265,4.7123889803847,4.8171087355044,4.921828490624,5.0265482457437,5.1312680008633,5.235987755983,5.3407075111026,5.4454272662223,5.550147021342,5.6548667764616,5.7595865315813,5.8643062867009,5.9690260418206,6.0737457969403,6.1784655520599,