3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(is_int('1')); var_dump(!!filter_var($num, FILTER_VALIDATE_INT));
based on GXf55
Output for 7.1.25 - 7.3.4
bool(false) Notice: Undefined variable: num in /in/FP5E7 on line 3 bool(false)