3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php for($i=0;$i<360;$i++) echo sin(deg2rad($i)).", ";
Output for 4.3.0 - 5.6.28, 7.0.0 - 7.1.0
0, 0.017452406437284, 0.034899496702501, 0.052335956242944, 0.069756473744125, 0.087155742747658, 0.10452846326765, 0.12186934340515, 0.13917310096007, 0.15643446504023, 0.17364817766693, 0.19080899537654, 0.20791169081776, 0.22495105434386, 0.24192189559967, 0.25881904510252, 0.275637355817, 0.29237170472274, 0.30901699437495, 0.32556815445716, 0.34202014332567, 0.3583679495453, 0.37460659341591, 0.39073112848927, 0.4067366430758, 0.4226182617407, 0.43837114678908, 0.45399049973955, 0.46947156278589, 0.48480962024634, 0.5, 0.51503807491005, 0.5299192642332, 0.54463903501503, 0.55919290347075, 0.57357643635105, 0.58778525229247, 0.60181502315205, 0.61566147532566, 0.62932039104984, 0.64278760968654, 0.65605902899051, 0.66913060635886, 0.6819983600625, 0.694658370459, 0.70710678118655, 0.71933980033865, 0.73135370161917, 0.74314482547739, 0.75470958022277, 0.76604444311898, 0.77714596145697, 0.78801075360672, 0.79863551004729, 0.80901699437495, 0.81915204428899, 0.82903757255504, 0.83867056794542, 0.84804809615643, 0.85716730070211, 0.86602540378444, 0.8746197071394, 0.88294759285893, 0.89100652418837, 0.89879404629917, 0.90630778703665, 0.9135454576426, 0.92050485345244, 0.92718385456679, 0.9335804264972, 0.93969262078591, 0.94551857559932, 0.95105651629515, 0.95630475596304, 0.96126169593832, 0.96592582628907, 0.970295726276, 0.97437006478524, 0.97814760073381, 0.98162718344766, 0.98480775301221, 0.98768834059514, 0.99026806874157, 0.99254615164132, 0.99452189536827, 0.99619469809175, 0.99756405025982, 0.99862953475457, 0.9993908270191, 0.99984769515639, 1, 0.99984769515639, 0.9993908270191, 0.99862953475457, 0.99756405025982, 0.99619469809175, 0.99452189536827, 0.99254615164132, 0.99026806874157, 0.98768834059514, 0.98480775301221, 0.98162718344766, 0.97814760073381, 0.97437006478524, 0.970295726276, 0.96592582628907, 0.96126169593832, 0.95630475596304, 0.95105651629515, 0.94551857559932, 0.93969262078591, 0.9335804264972, 0.92718385456679, 0.92050485345244, 0.9135454576426, 0.90630778703665, 0.89879404629917, 0.89100652418837, 0.88294759285893, 0.8746197071394, 0.86602540378444, 0.85716730070211, 0.84804809615643, 0.83867056794542, 0.82903757255504, 0.81915204428899, 0.80901699437495, 0.79863551004729, 0.78801075360672, 0.77714596145697, 0.76604444311898, 0.75470958022277, 0.74314482547739, 0.73135370161917, 0.71933980033865, 0.70710678118655, 0.694658370459, 0.6819983600625, 0.66913060635886, 0.65605902899051, 0.64278760968654, 0.62932039104984, 0.61566147532566, 0.60181502315205, 0.58778525229247, 0.57357643635105, 0.55919290347075, 0.54463903501503, 0.5299192642332, 0.51503807491005, 0.5, 0.48480962024634, 0.46947156278589, 0.45399049973955, 0.43837114678908, 0.4226182617407, 0.4067366430758, 0.39073112848927, 0.37460659341591, 0.3583679495453, 0.34202014332567, 0.32556815445716, 0.30901699437495, 0.29237170472274, 0.275637355817, 0.25881904510252, 0.24192189559967, 0.22495105434387, 0.20791169081776, 0.19080899537654, 0.17364817766693, 0.15643446504023, 0.13917310096007, 0.12186934340515, 0.10452846326765, 0.087155742747658, 0.069756473744126, 0.052335956242944, 0.034899496702501, 0.017452406437283, 1.2246467991474E-16, -0.017452406437283, -0.034899496702501, -0.052335956242944, -0.069756473744125, -0.087155742747658, -0.10452846326765, -0.12186934340515, -0.13917310096007, -0.15643446504023, -0.17364817766693, -0.19080899537654, -0.20791169081776, -0.22495105434386, -0.24192189559967, -0.25881904510252, -0.275637355817, -0.29237170472274, -0.30901699437495, -0.32556815445716, -0.34202014332567, -0.3583679495453, -0.37460659341591, -0.39073112848927, -0.4067366430758, -0.4226182617407, -0.43837114678908, -0.45399049973955, -0.46947156278589, -0.48480962024634, -0.5, -0.51503807491005, -0.5299192642332, -0.54463903501503, -0.55919290347075, -0.57357643635105, -0.58778525229247, -0.60181502315205, -0.61566147532566, -0.62932039104984, -0.64278760968654, -0.65605902899051, -0.66913060635886, -0.6819983600625, -0.694658370459, -0.70710678118655, -0.71933980033865, -0.73135370161917, -0.74314482547739, -0.75470958022277, -0.76604444311898, -0.77714596145697, -0.78801075360672, -0.79863551004729, -0.80901699437495, -0.81915204428899, -0.82903757255504, -0.83867056794542, -0.84804809615643, -0.85716730070211, -0.86602540378444, -0.8746197071394, -0.88294759285893, -0.89100652418837, -0.89879404629917, -0.90630778703665, -0.9135454576426, -0.92050485345244, -0.92718385456679, -0.9335804264972, -0.93969262078591, -0.94551857559932, -0.95105651629515, -0.95630475596304, -0.96126169593832, -0.96592582628907, -0.970295726276, -0.97437006478524, -0.97814760073381, -0.98162718344766, -0.98480775301221, -0.98768834059514, -0.99026806874157, -0.99254615164132, -0.99452189536827, -0.99619469809175, -0.99756405025982, -0.99862953475457, -0.9993908270191, -0.99984769515639, -1, -0.99984769515639, -0.9993908270191, -0.99862953475457, -0.99756405025982, -0.99619469809175, -0.99452189536827, -0.99254615164132, -0.99026806874157, -0.98768834059514, -0.98480775301221, -0.98162718344766, -0.97814760073381, -0.97437006478524, -0.970295726276, -0.96592582628907, -0.96126169593832, -0.95630475596304, -0.95105651629515, -0.94551857559932, -0.93969262078591, -0.9335804264972, -0.92718385456679, -0.92050485345244, -0.9135454576426, -0.90630778703665, -0.89879404629917, -0.89100652418837, -0.88294759285893, -0.8746197071394, -0.86602540378444, -0.85716730070211, -0.84804809615643, -0.83867056794542, -0.82903757255504, -0.81915204428899, -0.80901699437495, -0.79863551004729, -0.78801075360672, -0.77714596145697, -0.76604444311898, -0.75470958022277, -0.74314482547739, -0.73135370161917, -0.71933980033865, -0.70710678118655, -0.694658370459, -0.6819983600625, -0.66913060635886, -0.65605902899051, -0.64278760968654, -0.62932039104984, -0.61566147532566, -0.60181502315205, -0.58778525229247, -0.57357643635105, -0.55919290347075, -0.54463903501503, -0.52991926423321, -0.51503807491005, -0.5, -0.48480962024634, -0.46947156278589, -0.45399049973955, -0.43837114678908, -0.4226182617407, -0.4067366430758, -0.39073112848927, -0.37460659341591, -0.3583679495453, -0.34202014332567, -0.32556815445716, -0.30901699437495, -0.29237170472274, -0.275637355817, -0.25881904510252, -0.24192189559967, -0.22495105434387, -0.20791169081776, -0.19080899537654, -0.17364817766693, -0.15643446504023, -0.13917310096007, -0.12186934340515, -0.10452846326765, -0.087155742747658, -0.069756473744126, -0.052335956242943, -0.034899496702501, -0.017452406437284,
Output for hhvm-3.10.0 - 3.12.0
0, 0.017452406437284, 0.034899496702501, 0.052335956242944, 0.069756473744125, 0.087155742747658, 0.10452846326765, 0.12186934340515, 0.13917310096007, 0.15643446504023, 0.17364817766693, 0.19080899537655, 0.20791169081776, 0.22495105434387, 0.24192189559967, 0.25881904510252, 0.275637355817, 0.29237170472274, 0.30901699437495, 0.32556815445716, 0.34202014332567, 0.3583679495453, 0.37460659341591, 0.39073112848927, 0.4067366430758, 0.4226182617407, 0.43837114678908, 0.45399049973955, 0.46947156278589, 0.48480962024634, 0.5, 0.51503807491006, 0.52991926423321, 0.54463903501503, 0.55919290347075, 0.57357643635105, 0.58778525229247, 0.60181502315205, 0.61566147532566, 0.62932039104984, 0.64278760968654, 0.65605902899051, 0.66913060635886, 0.6819983600625, 0.694658370459, 0.70710678118655, 0.71933980033865, 0.73135370161917, 0.7431448254774, 0.75470958022277, 0.76604444311898, 0.77714596145697, 0.78801075360672, 0.79863551004729, 0.80901699437495, 0.81915204428899, 0.82903757255504, 0.83867056794543, 0.84804809615643, 0.85716730070211, 0.86602540378444, 0.8746197071394, 0.88294759285893, 0.89100652418837, 0.89879404629917, 0.90630778703665, 0.9135454576426, 0.92050485345244, 0.92718385456679, 0.9335804264972, 0.93969262078591, 0.94551857559932, 0.95105651629515, 0.95630475596304, 0.96126169593832, 0.96592582628907, 0.970295726276, 0.97437006478524, 0.97814760073381, 0.98162718344766, 0.98480775301221, 0.98768834059514, 0.99026806874157, 0.99254615164132, 0.99452189536827, 0.99619469809175, 0.99756405025982, 0.99862953475457, 0.9993908270191, 0.99984769515639, 1, 0.99984769515639, 0.9993908270191, 0.99862953475457, 0.99756405025982, 0.99619469809175, 0.99452189536827, 0.99254615164132, 0.99026806874157, 0.98768834059514, 0.98480775301221, 0.98162718344766, 0.9781476007338, 0.97437006478523, 0.970295726276, 0.96592582628907, 0.96126169593832, 0.95630475596303, 0.95105651629515, 0.94551857559932, 0.93969262078591, 0.9335804264972, 0.92718385456679, 0.92050485345244, 0.9135454576426, 0.90630778703665, 0.89879404629917, 0.89100652418837, 0.88294759285892, 0.87461970713939, 0.86602540378444, 0.85716730070211, 0.84804809615642, 0.83867056794542, 0.82903757255504, 0.81915204428899, 0.80901699437494, 0.79863551004729, 0.78801075360672, 0.77714596145697, 0.76604444311897, 0.75470958022277, 0.74314482547739, 0.73135370161917, 0.71933980033865, 0.70710678118654, 0.69465837045899, 0.68199836006249, 0.66913060635885, 0.6560590289905, 0.64278760968654, 0.62932039104983, 0.61566147532565, 0.60181502315204, 0.58778525229247, 0.57357643635104, 0.55919290347074, 0.54463903501502, 0.5299192642332, 0.51503807491005, 0.49999999999999, 0.48480962024633, 0.46947156278589, 0.45399049973954, 0.43837114678907, 0.42261826174069, 0.40673664307579, 0.39073112848927, 0.37460659341591, 0.35836794954529, 0.34202014332566, 0.32556815445715, 0.30901699437494, 0.29237170472273, 0.27563735581699, 0.25881904510251, 0.24192189559966, 0.22495105434386, 0.20791169081775, 0.19080899537654, 0.17364817766692, 0.15643446504022, 0.13917310096006, 0.12186934340514, 0.10452846326765, 0.087155742747652, 0.069756473744118, 0.052335956242937, 0.034899496702494, 0.017452406437276, -6.9829626776863E-15, -0.01745240643729, -0.034899496702508, -0.052335956242951, -0.069756473744132, -0.087155742747665, -0.10452846326766, -0.12186934340515, -0.13917310096007, -0.15643446504024, -0.17364817766694, -0.19080899537655, -0.20791169081777, -0.22495105434387, -0.24192189559967, -0.25881904510253, -0.27563735581701, -0.29237170472274, -0.30901699437495, -0.32556815445716, -0.34202014332568, -0.35836794954531, -0.37460659341592, -0.39073112848928, -0.40673664307581, -0.42261826174071, -0.43837114678908, -0.45399049973955, -0.4694715627859, -0.48480962024634, -0.50000000000001, -0.51503807491006, -0.52991926423321, -0.54463903501503, -0.55919290347075, -0.57357643635105, -0.58778525229248, -0.60181502315205, -0.61566147532566, -0.62932039104984, -0.64278760968655, -0.65605902899051, -0.66913060635886, -0.6819983600625, -0.694658370459, -0.70710678118655, -0.71933980033866, -0.73135370161918, -0.7431448254774, -0.75470958022278, -0.76604444311898, -0.77714596145698, -0.78801075360673, -0.7986355100473, -0.80901699437495, -0.819152044289, -0.82903757255505, -0.83867056794543, -0.84804809615643, -0.85716730070212, -0.86602540378444, -0.8746197071394, -0.88294759285893, -0.89100652418837, -0.89879404629917, -0.90630778703665, -0.9135454576426, -0.92050485345244, -0.92718385456679, -0.93358042649721, -0.93969262078591, -0.94551857559932, -0.95105651629516, -0.95630475596304, -0.96126169593832, -0.96592582628907, -0.970295726276, -0.97437006478524, -0.97814760073381, -0.98162718344767, -0.98480775301221, -0.98768834059514, -0.99026806874157, -0.99254615164132, -0.99452189536827, -0.99619469809175, -0.99756405025982, -0.99862953475457, -0.9993908270191, -0.99984769515639, -1, -0.99984769515639, -0.9993908270191, -0.99862953475457, -0.99756405025982, -0.99619469809174, -0.99452189536827, -0.99254615164132, -0.99026806874157, -0.98768834059514, -0.98480775301221, -0.98162718344766, -0.9781476007338, -0.97437006478523, -0.97029572627599, -0.96592582628907, -0.96126169593832, -0.95630475596303, -0.95105651629515, -0.94551857559931, -0.9396926207859, -0.9335804264972, -0.92718385456678, -0.92050485345244, -0.9135454576426, -0.90630778703665, -0.89879404629916, -0.89100652418836, -0.88294759285892, -0.87461970713939, -0.86602540378443, -0.85716730070211, -0.84804809615642, -0.83867056794542, -0.82903757255504, -0.81915204428899, -0.80901699437494, -0.79863551004729, -0.78801075360671, -0.77714596145696, -0.76604444311897, -0.75470958022276, -0.74314482547739, -0.73135370161916, -0.71933980033864, -0.70710678118654, -0.69465837045899, -0.68199836006249, -0.66913060635885, -0.6560590289905, -0.64278760968653, -0.62932039104983, -0.61566147532565, -0.60181502315204, -0.58778525229246, -0.57357643635104, -0.55919290347074, -0.54463903501502, -0.52991926423319, -0.51503807491004, -0.49999999999999, -0.48480962024633, -0.46947156278588, -0.45399049973954, -0.43837114678907, -0.42261826174069, -0.40673664307579, -0.39073112848926, -0.3746065934159, -0.35836794954529, -0.34202014332566, -0.32556815445714, -0.30901699437493, -0.29237170472272, -0.27563735581699, -0.25881904510251, -0.24192189559965, -0.22495105434385, -0.20791169081775, -0.19080899537653, -0.17364817766692, -0.15643446504022, -0.13917310096005, -0.12186934340513, -0.10452846326764, -0.087155742747644, -0.069756473744111, -0.05233595624293, -0.034899496702487, -0.017452406437269,