3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
$info_course = yes; if ($info_course == "yes"); then echo "<i class="icon-ok"></i>" ; ?> <?php if ($info_course == "no"); ?> then echo "<i class="icon-remove"></i>" ; ?>
based on KqLiU
Output for 5.0.4 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
$info_course = yes; if ($info_course == "yes"); then echo "<i class="icon-ok"></i>" ; ?> Notice: Undefined variable: info_course in /in/mVBc8 on line 6 then echo "<i class="icon-remove"></i>" ; ?>
Output for 4.3.0 - 5.0.3
$info_course = yes; if ($info_course == "yes"); then echo "<i class="icon-ok"></i>" ; ?> Notice: Undefined variable: info_course in /in/mVBc8 on line 6 then echo "<i class="icon-remove"></i>" ; ?>