3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function is_set($v) { return $v !== null; } if(is_set($var)) { echo $var; } else { echo '$var is not set' ; }
Output for 5.0.4 - 7.1.0
Notice: Undefined variable: var in /in/t2B6K on line 7 $var is not set
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: var in /in/t2B6K on line 7 $var is not set