3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $num = 80; for ($num=10, $num1=$num, $max=100; $num <= $max; $num++) { if ((($num % 10) == 0)) { echo $num; echo ( " converted to fahrenheit is " ); } elseif ((5/9) * ($num1 - 32)) { echo $num1; echo ( "</br>" ); } } echo ( "</br> End Loop." ); ?>
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 10</br>10</br>10</br>10</br>10</br>10</br>10</br>10</br>10</br>20 converted to fahrenheit is 10</br>10</br>10</br>10</br>10</br>10</br>10</br>10</br>10</br>30 converted to fahrenheit is 10</br>10</br>10</br>10</br>10</br>10</br>10</br>10</br>10</br>40 converted to fahrenheit is 10</br>10</br>10</br>10</br>10</br>10</br>10</br>10</br>10</br>50 converted to fahrenheit is 10</br>10</br>10</br>10</br>10</br>10</br>10</br>10</br>10</br>60 converted to fahrenheit is 10</br>10</br>10</br>10</br>10</br>10</br>10</br>10</br>10</br>70 converted to fahrenheit is 10</br>10</br>10</br>10</br>10</br>10</br>10</br>10</br>10</br>80 converted to fahrenheit is 10</br>10</br>10</br>10</br>10</br>10</br>10</br>10</br>10</br>90 converted to fahrenheit is 10</br>10</br>10</br>10</br>10</br>10</br>10</br>10</br>10</br>100 converted to fahrenheit is </br> End Loop.