3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $value = 0; if(isset($value) && $value !== "") { echo "Field not required"; } else { echo "Field required"; }
based on 0gdKB
Output for 4.3.0 - 7.1.0
Field not required