3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function is_intstr($val, $negative=false) { return preg_match("/^".($negative?"-?":"")."(0|[1-9][0-9])*$/", $val); } foreach(range(0, 10) as $n) { print_r(is_intstr($n)); }
based on CjHO6
Output for 4.3.0 - 7.2.0
10000000001