3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
$info_course = yes; <?php if($info_course[0] == "yes") ?> echo <i class="icon-ok"></i> <?php if($info_course[0] == "no") ?> echo <i class="icon-remove"></i> <?php _e('Babysitter Course', 'babysitter'); ?>
based on avKat
Output for 7.0.0 - 7.1.0
$info_course = yes; Notice: Undefined variable: info_course in /in/fCtrP on line 3 echo <i class="icon-ok"></i> Notice: Undefined variable: info_course in /in/fCtrP on line 5 echo <i class="icon-remove"></i> Fatal error: Uncaught Error: Call to undefined function _e() in /in/fCtrP:7 Stack trace: #0 {main} thrown in /in/fCtrP on line 7
Process exited with code 255.
Output for 5.0.4 - 5.6.28, hhvm-3.10.0 - 3.12.0
$info_course = yes; Notice: Undefined variable: info_course in /in/fCtrP on line 3 echo <i class="icon-ok"></i> Notice: Undefined variable: info_course in /in/fCtrP on line 5 echo <i class="icon-remove"></i> Fatal error: Call to undefined function _e() in /in/fCtrP on line 7
Process exited with code 255.
Output for 5.0.0 - 5.0.3
$info_course = yes; Notice: Undefined variable: info_course in /in/fCtrP on line 3 echo <i class="icon-ok"></i> Notice: Undefined variable: info_course in /in/fCtrP on line 5 echo <i class="icon-remove"></i> Fatal error: Call to undefined function _e() in /in/fCtrP on line 7
Process exited with code 255.
Output for 4.4.5 - 4.4.9
$info_course = yes; Notice: Undefined variable: info_course in /in/fCtrP on line 3 echo <i class="icon-ok"></i> Notice: Undefined variable: info_course in /in/fCtrP on line 5 echo <i class="icon-remove"></i> Fatal error: Call to undefined function: _e() in /in/fCtrP on line 7
Process exited with code 255.
Output for 4.3.2 - 4.4.4
$info_course = yes; Notice: Undefined variable: info_course in /in/fCtrP on line 3 echo <i class="icon-ok"></i> Notice: Undefined variable: info_course in /in/fCtrP on line 5 echo <i class="icon-remove"></i> Fatal error: Call to undefined function: _e() in /in/fCtrP on line 7
Process exited with code 255.
Output for 4.3.0 - 4.3.1
$info_course = yes; Notice: Undefined variable: info_course in /in/fCtrP on line 3 echo <i class="icon-ok"></i> Notice: Undefined variable: info_course in /in/fCtrP on line 5 echo <i class="icon-remove"></i> Fatal error: Call to undefined function: _e() in /in/fCtrP on line 7