3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo "True " . (filter_var(true, FILTER_VALIDATE_INT) === false ? "is integer" : "is not integer") . PHP_EOL; echo "False " . (filter_var(false, FILTER_VALIDATE_INT) === false ? "is integer" : "is not integer") . PHP_EOL;
based on UdXOk
Output for 5.3.20 - 7.2.0
True is not integer False is integer