3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php for ($num=-50; $num <= 50; $num += 5) { $f = (($num * 9) / 5) + 32; echo "$num converted to fahrenheit is $f\n"; }
Output for 4.3.0 - 7.1.0
-50 converted to fahrenheit is -58 -45 converted to fahrenheit is -49 -40 converted to fahrenheit is -40 -35 converted to fahrenheit is -31 -30 converted to fahrenheit is -22 -25 converted to fahrenheit is -13 -20 converted to fahrenheit is -4 -15 converted to fahrenheit is 5 -10 converted to fahrenheit is 14 -5 converted to fahrenheit is 23 0 converted to fahrenheit is 32 5 converted to fahrenheit is 41 10 converted to fahrenheit is 50 15 converted to fahrenheit is 59 20 converted to fahrenheit is 68 25 converted to fahrenheit is 77 30 converted to fahrenheit is 86 35 converted to fahrenheit is 95 40 converted to fahrenheit is 104 45 converted to fahrenheit is 113 50 converted to fahrenheit is 122