3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php if ($scale = "celcius") {print "<table border><tr><th colspan=2> Conversion Results</th></tr><tr><td>$degree</td><td>celsius</td></tr>"; $c_2_f = $degree*9/5+32; print "<tr><td>$c_2_f</td><td>fahrenheit</td></tr>"; $c_2_k = $degree+273.15; print "<tr><td>$c_2_k </td><td>kelvin</td></tr>"; $c_2_r = $c_2_f+459.6; print "<tr><td>$c_2_r</td><td>rankine</td></tr></table>";} ?>
Output for 5.0.4 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Notice: Undefined variable: degree in /in/eFXpr on line 3 <table border><tr><th colspan=2> Conversion Results</th></tr><tr><td></td><td>celsius</td></tr> Notice: Undefined variable: degree in /in/eFXpr on line 4 <tr><td>32</td><td>fahrenheit</td></tr> Notice: Undefined variable: degree in /in/eFXpr on line 6 <tr><td>273.15 </td><td>kelvin</td></tr><tr><td>491.6</td><td>rankine</td></tr></table>
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: degree in /in/eFXpr on line 3 <table border><tr><th colspan=2> Conversion Results</th></tr><tr><td></td><td>celsius</td></tr> Notice: Undefined variable: degree in /in/eFXpr on line 4 <tr><td>32</td><td>fahrenheit</td></tr> Notice: Undefined variable: degree in /in/eFXpr on line 6 <tr><td>273.15 </td><td>kelvin</td></tr><tr><td>491.6</td><td>rankine</td></tr></table>