3v4l.org

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