3v4l.org

run code in 200+ 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 - 7.1.10
$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>" ; ?>