3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php for ($num=10; $num <= 100; $num += 10) { $f = (($num * 9) / 5) + 32; echo "$num converted to fahrenheit is $f</br>"; }
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
10 converted to fahrenheit is 50</br>20 converted to fahrenheit is 68</br>30 converted to fahrenheit is 86</br>40 converted to fahrenheit is 104</br>50 converted to fahrenheit is 122</br>60 converted to fahrenheit is 140</br>70 converted to fahrenheit is 158</br>80 converted to fahrenheit is 176</br>90 converted to fahrenheit is 194</br>100 converted to fahrenheit is 212</br>