3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php if ($term == "mpv") echo strtoupper($term); else { echo ucfirst($term); }?>
Output for 5.0.4 - 7.2.0
Notice: Undefined variable: term in /in/7k99F on line 3 Notice: Undefined variable: term in /in/7k99F on line 7
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: term in /in/7k99F on line 3 Notice: Undefined variable: term in /in/7k99F on line 7