3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $test = '1'; var_dump(is_int($test)); var_dump(!!filter_var($test, FILTER_VALIDATE_INT));
based on fiHgt
Output for 7.1.25 - 7.3.4
bool(false) bool(true)