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\n"; }
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 20 converted to fahrenheit is 68 30 converted to fahrenheit is 86 40 converted to fahrenheit is 104 50 converted to fahrenheit is 122 60 converted to fahrenheit is 140 70 converted to fahrenheit is 158 80 converted to fahrenheit is 176 90 converted to fahrenheit is 194 100 converted to fahrenheit is 212