3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<? $values = array( '-0', -0, 0, 123, -123, '123', '-123', '0123', '123 ', '0', '000', '+123', '1.23', 1.23, '123e4', '0x123', 'potato', 'EEBD', false, null, ); echo("PHP version: ".phpversion()."\n\n"); foreach($values as $value){ echo("TRYING WITH "); var_dump($value); echo("is_int: "); var_dump(is_int($value)); echo("is_numeric: "); var_dump(is_numeric($value)); echo("regex: "); var_dump(preg_match('/^\-?[0-9]+$/',$value)); echo("ctype_digit: "); var_dump(ctype_digit(ltrim((string)$value, '-'))); echo("filter_var: "); var_dump(filter_var($value, FILTER_VALIDATE_INT)); echo("\n"); echo("\n"); } ?>
Output for 7.2.0
PHP version: 7.2.0 TRYING WITH string(2) "-0" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(0) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(0) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(123) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(123) TRYING WITH int(-123) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(-123) TRYING WITH string(3) "123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(123) TRYING WITH string(4) "-123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(-123) TRYING WITH string(4) "0123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: bool(false) TRYING WITH string(4) "123 " is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: int(123) TRYING WITH string(1) "0" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH string(3) "000" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: bool(false) TRYING WITH string(4) "+123" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: int(123) TRYING WITH string(4) "1.23" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH float(1.23) is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(5) "123e4" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(5) "0x123" is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(6) "potato" is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(4) "EEBD" is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH bool(false) is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH NULL is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false)
Output for 7.1.10
PHP version: 7.1.10 TRYING WITH string(2) "-0" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(0) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(0) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(123) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(123) TRYING WITH int(-123) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(-123) TRYING WITH string(3) "123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(123) TRYING WITH string(4) "-123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(-123) TRYING WITH string(4) "0123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: bool(false) TRYING WITH string(4) "123 " is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: int(123) TRYING WITH string(1) "0" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH string(3) "000" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: bool(false) TRYING WITH string(4) "+123" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: int(123) TRYING WITH string(4) "1.23" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH float(1.23) is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(5) "123e4" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(5) "0x123" is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(6) "potato" is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(4) "EEBD" is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH bool(false) is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH NULL is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false)
Output for 7.1.7
PHP version: 7.1.7 TRYING WITH string(2) "-0" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(0) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(0) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(123) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(123) TRYING WITH int(-123) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(-123) TRYING WITH string(3) "123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(123) TRYING WITH string(4) "-123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(-123) TRYING WITH string(4) "0123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: bool(false) TRYING WITH string(4) "123 " is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: int(123) TRYING WITH string(1) "0" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH string(3) "000" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: bool(false) TRYING WITH string(4) "+123" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: int(123) TRYING WITH string(4) "1.23" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH float(1.23) is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(5) "123e4" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(5) "0x123" is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(6) "potato" is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(4) "EEBD" is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH bool(false) is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH NULL is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false)
Output for 7.1.6
PHP version: 7.1.6 TRYING WITH string(2) "-0" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(0) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(0) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(123) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(123) TRYING WITH int(-123) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(-123) TRYING WITH string(3) "123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(123) TRYING WITH string(4) "-123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(-123) TRYING WITH string(4) "0123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: bool(false) TRYING WITH string(4) "123 " is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: int(123) TRYING WITH string(1) "0" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH string(3) "000" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: bool(false) TRYING WITH string(4) "+123" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: int(123) TRYING WITH string(4) "1.23" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH float(1.23) is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(5) "123e4" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(5) "0x123" is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(6) "potato" is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(4) "EEBD" is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH bool(false) is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH NULL is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false)
Output for 7.1.5
PHP version: 7.1.5 TRYING WITH string(2) "-0" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(0) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(0) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(123) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(123) TRYING WITH int(-123) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(-123) TRYING WITH string(3) "123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(123) TRYING WITH string(4) "-123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(-123) TRYING WITH string(4) "0123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: bool(false) TRYING WITH string(4) "123 " is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: int(123) TRYING WITH string(1) "0" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH string(3) "000" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: bool(false) TRYING WITH string(4) "+123" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: int(123) TRYING WITH string(4) "1.23" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH float(1.23) is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(5) "123e4" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(5) "0x123" is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(6) "potato" is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(4) "EEBD" is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH bool(false) is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH NULL is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false)
Output for 7.1.0
PHP version: 7.1.0 TRYING WITH string(2) "-0" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(0) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(0) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(123) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(123) TRYING WITH int(-123) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(-123) TRYING WITH string(3) "123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(123) TRYING WITH string(4) "-123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(-123) TRYING WITH string(4) "0123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: bool(false) TRYING WITH string(4) "123 " is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: int(123) TRYING WITH string(1) "0" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH string(3) "000" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: bool(false) TRYING WITH string(4) "+123" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: int(123) TRYING WITH string(4) "1.23" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH float(1.23) is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(5) "123e4" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(5) "0x123" is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(6) "potato" is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(4) "EEBD" is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH bool(false) is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH NULL is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false)
Output for 7.0.20
PHP version: 7.0.20 TRYING WITH string(2) "-0" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(0) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(0) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(123) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(123) TRYING WITH int(-123) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(-123) TRYING WITH string(3) "123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(123) TRYING WITH string(4) "-123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(-123) TRYING WITH string(4) "0123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: bool(false) TRYING WITH string(4) "123 " is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: int(123) TRYING WITH string(1) "0" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH string(3) "000" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: bool(false) TRYING WITH string(4) "+123" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: int(123) TRYING WITH string(4) "1.23" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH float(1.23) is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(5) "123e4" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(5) "0x123" is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(6) "potato" is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(4) "EEBD" is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH bool(false) is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH NULL is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false)
Output for 7.0.6
PHP version: 7.0.6 TRYING WITH string(2) "-0" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(0) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(0) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(123) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(123) TRYING WITH int(-123) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(-123) TRYING WITH string(3) "123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(123) TRYING WITH string(4) "-123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(-123) TRYING WITH string(4) "0123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: bool(false) TRYING WITH string(4) "123 " is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: int(123) TRYING WITH string(1) "0" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH string(3) "000" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: bool(false) TRYING WITH string(4) "+123" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: int(123) TRYING WITH string(4) "1.23" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH float(1.23) is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(5) "123e4" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(5) "0x123" is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(6) "potato" is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(4) "EEBD" is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH bool(false) is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH NULL is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false)
Output for 7.0.5
PHP version: 7.0.5 TRYING WITH string(2) "-0" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(0) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(0) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(123) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(123) TRYING WITH int(-123) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(-123) TRYING WITH string(3) "123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(123) TRYING WITH string(4) "-123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(-123) TRYING WITH string(4) "0123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: bool(false) TRYING WITH string(4) "123 " is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: int(123) TRYING WITH string(1) "0" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH string(3) "000" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: bool(false) TRYING WITH string(4) "+123" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: int(123) TRYING WITH string(4) "1.23" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH float(1.23) is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(5) "123e4" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(5) "0x123" is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(6) "potato" is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(4) "EEBD" is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH bool(false) is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH NULL is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false)
Output for 7.0.4
PHP version: 7.0.4 TRYING WITH string(2) "-0" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(0) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(0) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(123) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(123) TRYING WITH int(-123) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(-123) TRYING WITH string(3) "123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(123) TRYING WITH string(4) "-123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(-123) TRYING WITH string(4) "0123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: bool(false) TRYING WITH string(4) "123 " is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: int(123) TRYING WITH string(1) "0" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH string(3) "000" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: bool(false) TRYING WITH string(4) "+123" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: int(123) TRYING WITH string(4) "1.23" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH float(1.23) is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(5) "123e4" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(5) "0x123" is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(6) "potato" is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(4) "EEBD" is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH bool(false) is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH NULL is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false)
Output for 7.0.3
PHP version: 7.0.3 TRYING WITH string(2) "-0" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(0) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(0) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(123) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(123) TRYING WITH int(-123) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(-123) TRYING WITH string(3) "123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(123) TRYING WITH string(4) "-123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(-123) TRYING WITH string(4) "0123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: bool(false) TRYING WITH string(4) "123 " is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: int(123) TRYING WITH string(1) "0" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH string(3) "000" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: bool(false) TRYING WITH string(4) "+123" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: int(123) TRYING WITH string(4) "1.23" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH float(1.23) is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(5) "123e4" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(5) "0x123" is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(6) "potato" is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(4) "EEBD" is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH bool(false) is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH NULL is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false)
Output for 7.0.2
PHP version: 7.0.2 TRYING WITH string(2) "-0" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(0) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(0) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(123) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(123) TRYING WITH int(-123) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(-123) TRYING WITH string(3) "123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(123) TRYING WITH string(4) "-123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(-123) TRYING WITH string(4) "0123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: bool(false) TRYING WITH string(4) "123 " is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: int(123) TRYING WITH string(1) "0" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH string(3) "000" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: bool(false) TRYING WITH string(4) "+123" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: int(123) TRYING WITH string(4) "1.23" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH float(1.23) is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(5) "123e4" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(5) "0x123" is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(6) "potato" is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(4) "EEBD" is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH bool(false) is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH NULL is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false)
Output for 7.0.1
PHP version: 7.0.1 TRYING WITH string(2) "-0" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(0) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(0) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(123) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(123) TRYING WITH int(-123) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(-123) TRYING WITH string(3) "123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(123) TRYING WITH string(4) "-123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(-123) TRYING WITH string(4) "0123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: bool(false) TRYING WITH string(4) "123 " is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: int(123) TRYING WITH string(1) "0" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH string(3) "000" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: bool(false) TRYING WITH string(4) "+123" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: int(123) TRYING WITH string(4) "1.23" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH float(1.23) is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(5) "123e4" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(5) "0x123" is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(6) "potato" is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(4) "EEBD" is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH bool(false) is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH NULL is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false)
Output for 7.0.0
PHP version: 7.0.0 TRYING WITH string(2) "-0" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(0) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(0) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(123) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(123) TRYING WITH int(-123) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(-123) TRYING WITH string(3) "123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(123) TRYING WITH string(4) "-123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(-123) TRYING WITH string(4) "0123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: bool(false) TRYING WITH string(4) "123 " is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: int(123) TRYING WITH string(1) "0" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH string(3) "000" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: bool(false) TRYING WITH string(4) "+123" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: int(123) TRYING WITH string(4) "1.23" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH float(1.23) is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(5) "123e4" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(5) "0x123" is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(6) "potato" is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(4) "EEBD" is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH bool(false) is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH NULL is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false)
Output for 5.6.28
PHP version: 5.6.28 TRYING WITH string(2) "-0" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(0) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(0) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(123) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(123) TRYING WITH int(-123) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(-123) TRYING WITH string(3) "123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(123) TRYING WITH string(4) "-123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(-123) TRYING WITH string(4) "0123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: bool(false) TRYING WITH string(4) "123 " is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: int(123) TRYING WITH string(1) "0" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH string(3) "000" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: bool(false) TRYING WITH string(4) "+123" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: int(123) TRYING WITH string(4) "1.23" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH float(1.23) is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(5) "123e4" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(5) "0x123" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(6) "potato" is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(4) "EEBD" is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH bool(false) is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH NULL is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false)
Output for 5.6.21
PHP version: 5.6.21 TRYING WITH string(2) "-0" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(0) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(0) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(123) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(123) TRYING WITH int(-123) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(-123) TRYING WITH string(3) "123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(123) TRYING WITH string(4) "-123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(-123) TRYING WITH string(4) "0123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: bool(false) TRYING WITH string(4) "123 " is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: int(123) TRYING WITH string(1) "0" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH string(3) "000" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: bool(false) TRYING WITH string(4) "+123" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: int(123) TRYING WITH string(4) "1.23" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH float(1.23) is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(5) "123e4" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(5) "0x123" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(6) "potato" is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(4) "EEBD" is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH bool(false) is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH NULL is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false)
Output for 5.6.20
PHP version: 5.6.20 TRYING WITH string(2) "-0" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(0) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(0) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(123) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(123) TRYING WITH int(-123) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(-123) TRYING WITH string(3) "123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(123) TRYING WITH string(4) "-123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(-123) TRYING WITH string(4) "0123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: bool(false) TRYING WITH string(4) "123 " is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: int(123) TRYING WITH string(1) "0" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH string(3) "000" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: bool(false) TRYING WITH string(4) "+123" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: int(123) TRYING WITH string(4) "1.23" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH float(1.23) is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(5) "123e4" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(5) "0x123" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(6) "potato" is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(4) "EEBD" is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH bool(false) is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH NULL is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false)
Output for 5.6.19
PHP version: 5.6.19 TRYING WITH string(2) "-0" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(0) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(0) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(123) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(123) TRYING WITH int(-123) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(-123) TRYING WITH string(3) "123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(123) TRYING WITH string(4) "-123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(-123) TRYING WITH string(4) "0123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: bool(false) TRYING WITH string(4) "123 " is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: int(123) TRYING WITH string(1) "0" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH string(3) "000" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: bool(false) TRYING WITH string(4) "+123" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: int(123) TRYING WITH string(4) "1.23" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH float(1.23) is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(5) "123e4" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(5) "0x123" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(6) "potato" is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(4) "EEBD" is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH bool(false) is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH NULL is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false)
Output for 5.6.18
PHP version: 5.6.18 TRYING WITH string(2) "-0" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(0) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(0) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(123) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(123) TRYING WITH int(-123) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(-123) TRYING WITH string(3) "123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(123) TRYING WITH string(4) "-123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(-123) TRYING WITH string(4) "0123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: bool(false) TRYING WITH string(4) "123 " is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: int(123) TRYING WITH string(1) "0" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH string(3) "000" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: bool(false) TRYING WITH string(4) "+123" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: int(123) TRYING WITH string(4) "1.23" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH float(1.23) is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(5) "123e4" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(5) "0x123" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(6) "potato" is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(4) "EEBD" is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH bool(false) is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH NULL is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false)
Output for 5.6.17
PHP version: 5.6.17 TRYING WITH string(2) "-0" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(0) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(0) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(123) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(123) TRYING WITH int(-123) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(-123) TRYING WITH string(3) "123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(123) TRYING WITH string(4) "-123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(-123) TRYING WITH string(4) "0123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: bool(false) TRYING WITH string(4) "123 " is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: int(123) TRYING WITH string(1) "0" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH string(3) "000" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: bool(false) TRYING WITH string(4) "+123" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: int(123) TRYING WITH string(4) "1.23" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH float(1.23) is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(5) "123e4" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(5) "0x123" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(6) "potato" is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(4) "EEBD" is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH bool(false) is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH NULL is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false)
Output for 5.6.16
PHP version: 5.6.16 TRYING WITH string(2) "-0" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(0) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(0) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(123) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(123) TRYING WITH int(-123) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(-123) TRYING WITH string(3) "123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(123) TRYING WITH string(4) "-123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(-123) TRYING WITH string(4) "0123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: bool(false) TRYING WITH string(4) "123 " is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: int(123) TRYING WITH string(1) "0" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH string(3) "000" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: bool(false) TRYING WITH string(4) "+123" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: int(123) TRYING WITH string(4) "1.23" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH float(1.23) is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(5) "123e4" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(5) "0x123" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(6) "potato" is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(4) "EEBD" is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH bool(false) is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH NULL is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false)
Output for 5.6.15
PHP version: 5.6.15 TRYING WITH string(2) "-0" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(0) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(0) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(123) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(123) TRYING WITH int(-123) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(-123) TRYING WITH string(3) "123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(123) TRYING WITH string(4) "-123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(-123) TRYING WITH string(4) "0123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: bool(false) TRYING WITH string(4) "123 " is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: int(123) TRYING WITH string(1) "0" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH string(3) "000" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: bool(false) TRYING WITH string(4) "+123" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: int(123) TRYING WITH string(4) "1.23" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH float(1.23) is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(5) "123e4" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(5) "0x123" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(6) "potato" is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(4) "EEBD" is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH bool(false) is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH NULL is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false)
Output for 5.6.14
PHP version: 5.6.14 TRYING WITH string(2) "-0" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(0) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(0) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(123) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(123) TRYING WITH int(-123) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(-123) TRYING WITH string(3) "123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(123) TRYING WITH string(4) "-123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(-123) TRYING WITH string(4) "0123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: bool(false) TRYING WITH string(4) "123 " is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: int(123) TRYING WITH string(1) "0" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH string(3) "000" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: bool(false) TRYING WITH string(4) "+123" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: int(123) TRYING WITH string(4) "1.23" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH float(1.23) is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(5) "123e4" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(5) "0x123" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(6) "potato" is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(4) "EEBD" is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH bool(false) is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH NULL is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false)
Output for 5.6.13
PHP version: 5.6.13 TRYING WITH string(2) "-0" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(0) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(0) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(123) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(123) TRYING WITH int(-123) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(-123) TRYING WITH string(3) "123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(123) TRYING WITH string(4) "-123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(-123) TRYING WITH string(4) "0123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: bool(false) TRYING WITH string(4) "123 " is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: int(123) TRYING WITH string(1) "0" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH string(3) "000" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: bool(false) TRYING WITH string(4) "+123" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: int(123) TRYING WITH string(4) "1.23" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH float(1.23) is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(5) "123e4" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(5) "0x123" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(6) "potato" is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(4) "EEBD" is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH bool(false) is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH NULL is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false)
Output for 5.6.12
PHP version: 5.6.12 TRYING WITH string(2) "-0" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(0) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(0) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(123) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(123) TRYING WITH int(-123) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(-123) TRYING WITH string(3) "123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(123) TRYING WITH string(4) "-123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(-123) TRYING WITH string(4) "0123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: bool(false) TRYING WITH string(4) "123 " is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: int(123) TRYING WITH string(1) "0" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH string(3) "000" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: bool(false) TRYING WITH string(4) "+123" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: int(123) TRYING WITH string(4) "1.23" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH float(1.23) is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(5) "123e4" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(5) "0x123" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(6) "potato" is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(4) "EEBD" is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH bool(false) is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH NULL is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false)
Output for 5.6.11
PHP version: 5.6.11 TRYING WITH string(2) "-0" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(0) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(0) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(123) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(123) TRYING WITH int(-123) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(-123) TRYING WITH string(3) "123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(123) TRYING WITH string(4) "-123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(-123) TRYING WITH string(4) "0123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: bool(false) TRYING WITH string(4) "123 " is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: int(123) TRYING WITH string(1) "0" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH string(3) "000" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: bool(false) TRYING WITH string(4) "+123" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: int(123) TRYING WITH string(4) "1.23" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH float(1.23) is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(5) "123e4" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(5) "0x123" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(6) "potato" is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(4) "EEBD" is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH bool(false) is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH NULL is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false)
Output for 5.6.10
PHP version: 5.6.10 TRYING WITH string(2) "-0" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(0) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(0) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(123) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(123) TRYING WITH int(-123) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(-123) TRYING WITH string(3) "123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(123) TRYING WITH string(4) "-123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(-123) TRYING WITH string(4) "0123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: bool(false) TRYING WITH string(4) "123 " is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: int(123) TRYING WITH string(1) "0" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH string(3) "000" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: bool(false) TRYING WITH string(4) "+123" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: int(123) TRYING WITH string(4) "1.23" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH float(1.23) is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(5) "123e4" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(5) "0x123" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(6) "potato" is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(4) "EEBD" is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH bool(false) is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH NULL is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false)
Output for 5.6.9
PHP version: 5.6.9 TRYING WITH string(2) "-0" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(0) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(0) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(123) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(123) TRYING WITH int(-123) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(-123) TRYING WITH string(3) "123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(123) TRYING WITH string(4) "-123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(-123) TRYING WITH string(4) "0123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: bool(false) TRYING WITH string(4) "123 " is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: int(123) TRYING WITH string(1) "0" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH string(3) "000" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: bool(false) TRYING WITH string(4) "+123" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: int(123) TRYING WITH string(4) "1.23" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH float(1.23) is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(5) "123e4" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(5) "0x123" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(6) "potato" is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(4) "EEBD" is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH bool(false) is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH NULL is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false)
Output for 5.6.8
PHP version: 5.6.8 TRYING WITH string(2) "-0" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(0) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(0) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(123) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(123) TRYING WITH int(-123) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(-123) TRYING WITH string(3) "123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(123) TRYING WITH string(4) "-123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(-123) TRYING WITH string(4) "0123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: bool(false) TRYING WITH string(4) "123 " is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: int(123) TRYING WITH string(1) "0" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH string(3) "000" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: bool(false) TRYING WITH string(4) "+123" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: int(123) TRYING WITH string(4) "1.23" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH float(1.23) is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(5) "123e4" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(5) "0x123" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(6) "potato" is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(4) "EEBD" is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH bool(false) is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH NULL is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false)
Output for 5.5.35
PHP version: 5.5.35 TRYING WITH string(2) "-0" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(0) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(0) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(123) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(123) TRYING WITH int(-123) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(-123) TRYING WITH string(3) "123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(123) TRYING WITH string(4) "-123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(-123) TRYING WITH string(4) "0123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: bool(false) TRYING WITH string(4) "123 " is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: int(123) TRYING WITH string(1) "0" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH string(3) "000" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: bool(false) TRYING WITH string(4) "+123" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: int(123) TRYING WITH string(4) "1.23" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH float(1.23) is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(5) "123e4" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(5) "0x123" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(6) "potato" is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(4) "EEBD" is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH bool(false) is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH NULL is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false)
Output for 5.5.34
PHP version: 5.5.34 TRYING WITH string(2) "-0" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(0) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(0) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(123) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(123) TRYING WITH int(-123) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(-123) TRYING WITH string(3) "123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(123) TRYING WITH string(4) "-123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(-123) TRYING WITH string(4) "0123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: bool(false) TRYING WITH string(4) "123 " is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: int(123) TRYING WITH string(1) "0" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH string(3) "000" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: bool(false) TRYING WITH string(4) "+123" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: int(123) TRYING WITH string(4) "1.23" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH float(1.23) is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(5) "123e4" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(5) "0x123" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(6) "potato" is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(4) "EEBD" is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH bool(false) is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH NULL is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false)
Output for 5.5.33
PHP version: 5.5.33 TRYING WITH string(2) "-0" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(0) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(0) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(123) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(123) TRYING WITH int(-123) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(-123) TRYING WITH string(3) "123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(123) TRYING WITH string(4) "-123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(-123) TRYING WITH string(4) "0123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: bool(false) TRYING WITH string(4) "123 " is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: int(123) TRYING WITH string(1) "0" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH string(3) "000" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: bool(false) TRYING WITH string(4) "+123" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: int(123) TRYING WITH string(4) "1.23" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH float(1.23) is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(5) "123e4" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(5) "0x123" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(6) "potato" is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(4) "EEBD" is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH bool(false) is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH NULL is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false)
Output for 5.5.32
PHP version: 5.5.32 TRYING WITH string(2) "-0" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(0) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(0) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(123) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(123) TRYING WITH int(-123) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(-123) TRYING WITH string(3) "123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(123) TRYING WITH string(4) "-123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(-123) TRYING WITH string(4) "0123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: bool(false) TRYING WITH string(4) "123 " is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: int(123) TRYING WITH string(1) "0" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH string(3) "000" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: bool(false) TRYING WITH string(4) "+123" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: int(123) TRYING WITH string(4) "1.23" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH float(1.23) is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(5) "123e4" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(5) "0x123" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(6) "potato" is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(4) "EEBD" is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH bool(false) is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH NULL is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false)
Output for 5.5.31
PHP version: 5.5.31 TRYING WITH string(2) "-0" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(0) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(0) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(123) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(123) TRYING WITH int(-123) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(-123) TRYING WITH string(3) "123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(123) TRYING WITH string(4) "-123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(-123) TRYING WITH string(4) "0123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: bool(false) TRYING WITH string(4) "123 " is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: int(123) TRYING WITH string(1) "0" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH string(3) "000" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: bool(false) TRYING WITH string(4) "+123" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: int(123) TRYING WITH string(4) "1.23" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH float(1.23) is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(5) "123e4" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(5) "0x123" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(6) "potato" is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(4) "EEBD" is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH bool(false) is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH NULL is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false)
Output for 5.5.30
PHP version: 5.5.30 TRYING WITH string(2) "-0" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(0) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(0) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(123) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(123) TRYING WITH int(-123) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(-123) TRYING WITH string(3) "123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(123) TRYING WITH string(4) "-123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(-123) TRYING WITH string(4) "0123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: bool(false) TRYING WITH string(4) "123 " is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: int(123) TRYING WITH string(1) "0" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH string(3) "000" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: bool(false) TRYING WITH string(4) "+123" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: int(123) TRYING WITH string(4) "1.23" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH float(1.23) is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(5) "123e4" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(5) "0x123" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(6) "potato" is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(4) "EEBD" is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH bool(false) is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH NULL is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false)
Output for 5.5.29
PHP version: 5.5.29 TRYING WITH string(2) "-0" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(0) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(0) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(123) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(123) TRYING WITH int(-123) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(-123) TRYING WITH string(3) "123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(123) TRYING WITH string(4) "-123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(-123) TRYING WITH string(4) "0123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: bool(false) TRYING WITH string(4) "123 " is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: int(123) TRYING WITH string(1) "0" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH string(3) "000" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: bool(false) TRYING WITH string(4) "+123" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: int(123) TRYING WITH string(4) "1.23" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH float(1.23) is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(5) "123e4" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(5) "0x123" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(6) "potato" is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(4) "EEBD" is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH bool(false) is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH NULL is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false)
Output for 5.5.28
PHP version: 5.5.28 TRYING WITH string(2) "-0" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(0) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(0) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(123) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(123) TRYING WITH int(-123) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(-123) TRYING WITH string(3) "123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(123) TRYING WITH string(4) "-123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(-123) TRYING WITH string(4) "0123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: bool(false) TRYING WITH string(4) "123 " is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: int(123) TRYING WITH string(1) "0" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH string(3) "000" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: bool(false) TRYING WITH string(4) "+123" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: int(123) TRYING WITH string(4) "1.23" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH float(1.23) is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(5) "123e4" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(5) "0x123" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(6) "potato" is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(4) "EEBD" is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH bool(false) is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH NULL is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false)
Output for 5.5.27
PHP version: 5.5.27 TRYING WITH string(2) "-0" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(0) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(0) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(123) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(123) TRYING WITH int(-123) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(-123) TRYING WITH string(3) "123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(123) TRYING WITH string(4) "-123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(-123) TRYING WITH string(4) "0123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: bool(false) TRYING WITH string(4) "123 " is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: int(123) TRYING WITH string(1) "0" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH string(3) "000" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: bool(false) TRYING WITH string(4) "+123" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: int(123) TRYING WITH string(4) "1.23" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH float(1.23) is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(5) "123e4" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(5) "0x123" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(6) "potato" is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(4) "EEBD" is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH bool(false) is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH NULL is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false)
Output for 5.5.26
PHP version: 5.5.26 TRYING WITH string(2) "-0" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(0) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(0) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(123) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(123) TRYING WITH int(-123) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(-123) TRYING WITH string(3) "123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(123) TRYING WITH string(4) "-123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(-123) TRYING WITH string(4) "0123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: bool(false) TRYING WITH string(4) "123 " is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: int(123) TRYING WITH string(1) "0" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH string(3) "000" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: bool(false) TRYING WITH string(4) "+123" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: int(123) TRYING WITH string(4) "1.23" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH float(1.23) is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(5) "123e4" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(5) "0x123" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(6) "potato" is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(4) "EEBD" is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH bool(false) is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH NULL is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false)
Output for 5.5.25
PHP version: 5.5.25 TRYING WITH string(2) "-0" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(0) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(0) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(123) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(123) TRYING WITH int(-123) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(-123) TRYING WITH string(3) "123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(123) TRYING WITH string(4) "-123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(-123) TRYING WITH string(4) "0123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: bool(false) TRYING WITH string(4) "123 " is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: int(123) TRYING WITH string(1) "0" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH string(3) "000" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: bool(false) TRYING WITH string(4) "+123" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: int(123) TRYING WITH string(4) "1.23" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH float(1.23) is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(5) "123e4" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(5) "0x123" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(6) "potato" is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(4) "EEBD" is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH bool(false) is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH NULL is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false)
Output for 5.5.24
PHP version: 5.5.24 TRYING WITH string(2) "-0" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(0) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(0) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(123) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(123) TRYING WITH int(-123) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(-123) TRYING WITH string(3) "123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(123) TRYING WITH string(4) "-123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(-123) TRYING WITH string(4) "0123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: bool(false) TRYING WITH string(4) "123 " is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: int(123) TRYING WITH string(1) "0" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH string(3) "000" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: bool(false) TRYING WITH string(4) "+123" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: int(123) TRYING WITH string(4) "1.23" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH float(1.23) is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(5) "123e4" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(5) "0x123" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(6) "potato" is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(4) "EEBD" is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH bool(false) is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH NULL is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false)
Output for 5.4.45
PHP version: 5.4.45 TRYING WITH string(2) "-0" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(0) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(0) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(123) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(123) TRYING WITH int(-123) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(-123) TRYING WITH string(3) "123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(123) TRYING WITH string(4) "-123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(-123) TRYING WITH string(4) "0123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: bool(false) TRYING WITH string(4) "123 " is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: int(123) TRYING WITH string(1) "0" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH string(3) "000" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: bool(false) TRYING WITH string(4) "+123" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: int(123) TRYING WITH string(4) "1.23" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH float(1.23) is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(5) "123e4" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(5) "0x123" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(6) "potato" is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(4) "EEBD" is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH bool(false) is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH NULL is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false)
Output for 5.4.44
PHP version: 5.4.44 TRYING WITH string(2) "-0" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(0) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(0) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(123) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(123) TRYING WITH int(-123) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(-123) TRYING WITH string(3) "123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(123) TRYING WITH string(4) "-123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(-123) TRYING WITH string(4) "0123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: bool(false) TRYING WITH string(4) "123 " is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: int(123) TRYING WITH string(1) "0" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH string(3) "000" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: bool(false) TRYING WITH string(4) "+123" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: int(123) TRYING WITH string(4) "1.23" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH float(1.23) is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(5) "123e4" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(5) "0x123" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(6) "potato" is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(4) "EEBD" is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH bool(false) is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH NULL is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false)
Output for 5.4.43
PHP version: 5.4.43 TRYING WITH string(2) "-0" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(0) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(0) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(123) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(123) TRYING WITH int(-123) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(-123) TRYING WITH string(3) "123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(123) TRYING WITH string(4) "-123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(-123) TRYING WITH string(4) "0123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: bool(false) TRYING WITH string(4) "123 " is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: int(123) TRYING WITH string(1) "0" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH string(3) "000" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: bool(false) TRYING WITH string(4) "+123" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: int(123) TRYING WITH string(4) "1.23" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH float(1.23) is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(5) "123e4" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(5) "0x123" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(6) "potato" is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(4) "EEBD" is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH bool(false) is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH NULL is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false)
Output for 5.4.42
PHP version: 5.4.42 TRYING WITH string(2) "-0" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(0) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(0) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(123) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(123) TRYING WITH int(-123) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(-123) TRYING WITH string(3) "123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(123) TRYING WITH string(4) "-123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(-123) TRYING WITH string(4) "0123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: bool(false) TRYING WITH string(4) "123 " is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: int(123) TRYING WITH string(1) "0" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH string(3) "000" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: bool(false) TRYING WITH string(4) "+123" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: int(123) TRYING WITH string(4) "1.23" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH float(1.23) is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(5) "123e4" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(5) "0x123" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(6) "potato" is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(4) "EEBD" is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH bool(false) is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH NULL is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false)
Output for 5.4.41
PHP version: 5.4.41 TRYING WITH string(2) "-0" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(0) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(0) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(123) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(123) TRYING WITH int(-123) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(-123) TRYING WITH string(3) "123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(123) TRYING WITH string(4) "-123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(-123) TRYING WITH string(4) "0123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: bool(false) TRYING WITH string(4) "123 " is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: int(123) TRYING WITH string(1) "0" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH string(3) "000" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: bool(false) TRYING WITH string(4) "+123" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: int(123) TRYING WITH string(4) "1.23" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH float(1.23) is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(5) "123e4" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(5) "0x123" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(6) "potato" is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(4) "EEBD" is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH bool(false) is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH NULL is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false)
Output for 5.4.40
PHP version: 5.4.40 TRYING WITH string(2) "-0" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(0) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(0) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(123) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(123) TRYING WITH int(-123) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(-123) TRYING WITH string(3) "123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(123) TRYING WITH string(4) "-123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(-123) TRYING WITH string(4) "0123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: bool(false) TRYING WITH string(4) "123 " is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: int(123) TRYING WITH string(1) "0" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH string(3) "000" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: bool(false) TRYING WITH string(4) "+123" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: int(123) TRYING WITH string(4) "1.23" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH float(1.23) is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(5) "123e4" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(5) "0x123" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(6) "potato" is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(4) "EEBD" is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH bool(false) is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH NULL is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false)
Output for 5.4.39
PHP version: 5.4.39 TRYING WITH string(2) "-0" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(0) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(0) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(123) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(123) TRYING WITH int(-123) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(-123) TRYING WITH string(3) "123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(123) TRYING WITH string(4) "-123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(-123) TRYING WITH string(4) "0123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: bool(false) TRYING WITH string(4) "123 " is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: int(123) TRYING WITH string(1) "0" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH string(3) "000" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: bool(false) TRYING WITH string(4) "+123" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: int(123) TRYING WITH string(4) "1.23" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH float(1.23) is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(5) "123e4" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(5) "0x123" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(6) "potato" is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(4) "EEBD" is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH bool(false) is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH NULL is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false)
Output for 5.4.38
PHP version: 5.4.38 TRYING WITH string(2) "-0" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(0) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(0) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(123) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(123) TRYING WITH int(-123) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(-123) TRYING WITH string(3) "123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(123) TRYING WITH string(4) "-123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(-123) TRYING WITH string(4) "0123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: bool(false) TRYING WITH string(4) "123 " is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: int(123) TRYING WITH string(1) "0" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH string(3) "000" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: bool(false) TRYING WITH string(4) "+123" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: int(123) TRYING WITH string(4) "1.23" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH float(1.23) is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(5) "123e4" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(5) "0x123" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(6) "potato" is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(4) "EEBD" is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH bool(false) is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH NULL is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false)
Output for 5.4.37
PHP version: 5.4.37 TRYING WITH string(2) "-0" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(0) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(0) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(123) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(123) TRYING WITH int(-123) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(-123) TRYING WITH string(3) "123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(123) TRYING WITH string(4) "-123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(-123) TRYING WITH string(4) "0123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: bool(false) TRYING WITH string(4) "123 " is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: int(123) TRYING WITH string(1) "0" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH string(3) "000" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: bool(false) TRYING WITH string(4) "+123" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: int(123) TRYING WITH string(4) "1.23" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH float(1.23) is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(5) "123e4" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(5) "0x123" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(6) "potato" is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(4) "EEBD" is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH bool(false) is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH NULL is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false)
Output for 5.4.36
PHP version: 5.4.36 TRYING WITH string(2) "-0" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(0) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(0) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(123) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(123) TRYING WITH int(-123) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(-123) TRYING WITH string(3) "123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(123) TRYING WITH string(4) "-123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(-123) TRYING WITH string(4) "0123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: bool(false) TRYING WITH string(4) "123 " is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: int(123) TRYING WITH string(1) "0" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH string(3) "000" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: bool(false) TRYING WITH string(4) "+123" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: int(123) TRYING WITH string(4) "1.23" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH float(1.23) is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(5) "123e4" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(5) "0x123" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(6) "potato" is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(4) "EEBD" is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH bool(false) is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH NULL is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false)
Output for 5.4.35
PHP version: 5.4.35 TRYING WITH string(2) "-0" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(0) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(0) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(123) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(123) TRYING WITH int(-123) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(-123) TRYING WITH string(3) "123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(123) TRYING WITH string(4) "-123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(-123) TRYING WITH string(4) "0123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: bool(false) TRYING WITH string(4) "123 " is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: int(123) TRYING WITH string(1) "0" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH string(3) "000" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: bool(false) TRYING WITH string(4) "+123" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: int(123) TRYING WITH string(4) "1.23" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH float(1.23) is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(5) "123e4" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(5) "0x123" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(6) "potato" is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(4) "EEBD" is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH bool(false) is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH NULL is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false)
Output for 5.4.34
PHP version: 5.4.34 TRYING WITH string(2) "-0" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(0) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(0) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(123) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(123) TRYING WITH int(-123) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(-123) TRYING WITH string(3) "123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(123) TRYING WITH string(4) "-123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(-123) TRYING WITH string(4) "0123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: bool(false) TRYING WITH string(4) "123 " is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: int(123) TRYING WITH string(1) "0" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH string(3) "000" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: bool(false) TRYING WITH string(4) "+123" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: int(123) TRYING WITH string(4) "1.23" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH float(1.23) is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(5) "123e4" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(5) "0x123" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(6) "potato" is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(4) "EEBD" is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH bool(false) is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH NULL is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false)
Output for 5.4.32
PHP version: 5.4.32 TRYING WITH string(2) "-0" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(0) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(0) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(123) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(123) TRYING WITH int(-123) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(-123) TRYING WITH string(3) "123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(123) TRYING WITH string(4) "-123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(-123) TRYING WITH string(4) "0123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: bool(false) TRYING WITH string(4) "123 " is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: int(123) TRYING WITH string(1) "0" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH string(3) "000" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: bool(false) TRYING WITH string(4) "+123" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: int(123) TRYING WITH string(4) "1.23" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH float(1.23) is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(5) "123e4" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(5) "0x123" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(6) "potato" is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(4) "EEBD" is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH bool(false) is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH NULL is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false)
Output for 5.4.31
PHP version: 5.4.31 TRYING WITH string(2) "-0" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(0) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(0) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(123) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(123) TRYING WITH int(-123) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(-123) TRYING WITH string(3) "123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(123) TRYING WITH string(4) "-123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(-123) TRYING WITH string(4) "0123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: bool(false) TRYING WITH string(4) "123 " is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: int(123) TRYING WITH string(1) "0" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH string(3) "000" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: bool(false) TRYING WITH string(4) "+123" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: int(123) TRYING WITH string(4) "1.23" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH float(1.23) is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(5) "123e4" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(5) "0x123" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(6) "potato" is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(4) "EEBD" is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH bool(false) is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH NULL is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false)
Output for 5.4.30
PHP version: 5.4.30 TRYING WITH string(2) "-0" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(0) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(0) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(123) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(123) TRYING WITH int(-123) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(-123) TRYING WITH string(3) "123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(123) TRYING WITH string(4) "-123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(-123) TRYING WITH string(4) "0123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: bool(false) TRYING WITH string(4) "123 " is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: int(123) TRYING WITH string(1) "0" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH string(3) "000" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: bool(false) TRYING WITH string(4) "+123" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: int(123) TRYING WITH string(4) "1.23" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH float(1.23) is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(5) "123e4" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(5) "0x123" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(6) "potato" is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(4) "EEBD" is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH bool(false) is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH NULL is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false)
Output for 5.4.29
PHP version: 5.4.29 TRYING WITH string(2) "-0" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(0) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(0) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(123) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(123) TRYING WITH int(-123) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(-123) TRYING WITH string(3) "123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(123) TRYING WITH string(4) "-123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(-123) TRYING WITH string(4) "0123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: bool(false) TRYING WITH string(4) "123 " is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: int(123) TRYING WITH string(1) "0" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH string(3) "000" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: bool(false) TRYING WITH string(4) "+123" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: int(123) TRYING WITH string(4) "1.23" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH float(1.23) is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(5) "123e4" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(5) "0x123" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(6) "potato" is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(4) "EEBD" is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH bool(false) is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH NULL is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false)
Output for 5.4.28
PHP version: 5.4.28 TRYING WITH string(2) "-0" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(0) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(0) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(123) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(123) TRYING WITH int(-123) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(-123) TRYING WITH string(3) "123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(123) TRYING WITH string(4) "-123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(-123) TRYING WITH string(4) "0123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: bool(false) TRYING WITH string(4) "123 " is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: int(123) TRYING WITH string(1) "0" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH string(3) "000" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: bool(false) TRYING WITH string(4) "+123" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: int(123) TRYING WITH string(4) "1.23" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH float(1.23) is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(5) "123e4" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(5) "0x123" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(6) "potato" is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(4) "EEBD" is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH bool(false) is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH NULL is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false)
Output for 5.4.27
PHP version: 5.4.27 TRYING WITH string(2) "-0" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(0) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(0) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(123) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(123) TRYING WITH int(-123) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(-123) TRYING WITH string(3) "123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(123) TRYING WITH string(4) "-123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(-123) TRYING WITH string(4) "0123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: bool(false) TRYING WITH string(4) "123 " is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: int(123) TRYING WITH string(1) "0" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH string(3) "000" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: bool(false) TRYING WITH string(4) "+123" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: int(123) TRYING WITH string(4) "1.23" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH float(1.23) is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(5) "123e4" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(5) "0x123" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(6) "potato" is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(4) "EEBD" is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH bool(false) is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH NULL is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false)
Output for 5.4.26
PHP version: 5.4.26 TRYING WITH string(2) "-0" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(0) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(0) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(123) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(123) TRYING WITH int(-123) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(-123) TRYING WITH string(3) "123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(123) TRYING WITH string(4) "-123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(-123) TRYING WITH string(4) "0123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: bool(false) TRYING WITH string(4) "123 " is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: int(123) TRYING WITH string(1) "0" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH string(3) "000" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: bool(false) TRYING WITH string(4) "+123" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: int(123) TRYING WITH string(4) "1.23" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH float(1.23) is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(5) "123e4" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(5) "0x123" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(6) "potato" is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(4) "EEBD" is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH bool(false) is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH NULL is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false)
Output for 5.4.25
PHP version: 5.4.25 TRYING WITH string(2) "-0" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(0) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(0) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(123) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(123) TRYING WITH int(-123) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(-123) TRYING WITH string(3) "123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(123) TRYING WITH string(4) "-123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(-123) TRYING WITH string(4) "0123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: bool(false) TRYING WITH string(4) "123 " is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: int(123) TRYING WITH string(1) "0" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH string(3) "000" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: bool(false) TRYING WITH string(4) "+123" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: int(123) TRYING WITH string(4) "1.23" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH float(1.23) is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(5) "123e4" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(5) "0x123" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(6) "potato" is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(4) "EEBD" is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH bool(false) is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH NULL is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false)
Output for 5.4.24
PHP version: 5.4.24 TRYING WITH string(2) "-0" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(0) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(0) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(123) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(123) TRYING WITH int(-123) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(-123) TRYING WITH string(3) "123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(123) TRYING WITH string(4) "-123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(-123) TRYING WITH string(4) "0123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: bool(false) TRYING WITH string(4) "123 " is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: int(123) TRYING WITH string(1) "0" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH string(3) "000" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: bool(false) TRYING WITH string(4) "+123" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: int(123) TRYING WITH string(4) "1.23" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH float(1.23) is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(5) "123e4" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(5) "0x123" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(6) "potato" is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(4) "EEBD" is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH bool(false) is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH NULL is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false)
Output for 5.4.23
PHP version: 5.4.23 TRYING WITH string(2) "-0" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(0) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(0) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(123) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(123) TRYING WITH int(-123) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(-123) TRYING WITH string(3) "123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(123) TRYING WITH string(4) "-123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(-123) TRYING WITH string(4) "0123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: bool(false) TRYING WITH string(4) "123 " is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: int(123) TRYING WITH string(1) "0" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH string(3) "000" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: bool(false) TRYING WITH string(4) "+123" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: int(123) TRYING WITH string(4) "1.23" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH float(1.23) is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(5) "123e4" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(5) "0x123" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(6) "potato" is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(4) "EEBD" is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH bool(false) is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH NULL is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false)
Output for 5.4.22
PHP version: 5.4.22 TRYING WITH string(2) "-0" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(0) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(0) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(123) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(123) TRYING WITH int(-123) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(-123) TRYING WITH string(3) "123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(123) TRYING WITH string(4) "-123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(-123) TRYING WITH string(4) "0123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: bool(false) TRYING WITH string(4) "123 " is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: int(123) TRYING WITH string(1) "0" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH string(3) "000" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: bool(false) TRYING WITH string(4) "+123" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: int(123) TRYING WITH string(4) "1.23" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH float(1.23) is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(5) "123e4" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(5) "0x123" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(6) "potato" is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(4) "EEBD" is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH bool(false) is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH NULL is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false)
Output for 5.4.21
PHP version: 5.4.21 TRYING WITH string(2) "-0" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(0) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(0) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(123) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(123) TRYING WITH int(-123) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(-123) TRYING WITH string(3) "123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(123) TRYING WITH string(4) "-123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(-123) TRYING WITH string(4) "0123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: bool(false) TRYING WITH string(4) "123 " is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: int(123) TRYING WITH string(1) "0" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH string(3) "000" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: bool(false) TRYING WITH string(4) "+123" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: int(123) TRYING WITH string(4) "1.23" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH float(1.23) is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(5) "123e4" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(5) "0x123" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(6) "potato" is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(4) "EEBD" is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH bool(false) is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH NULL is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false)
Output for 5.4.20
PHP version: 5.4.20 TRYING WITH string(2) "-0" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(0) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(0) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(123) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(123) TRYING WITH int(-123) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(-123) TRYING WITH string(3) "123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(123) TRYING WITH string(4) "-123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(-123) TRYING WITH string(4) "0123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: bool(false) TRYING WITH string(4) "123 " is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: int(123) TRYING WITH string(1) "0" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH string(3) "000" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: bool(false) TRYING WITH string(4) "+123" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: int(123) TRYING WITH string(4) "1.23" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH float(1.23) is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(5) "123e4" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(5) "0x123" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(6) "potato" is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(4) "EEBD" is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH bool(false) is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH NULL is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false)
Output for 5.4.19
PHP version: 5.4.19 TRYING WITH string(2) "-0" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(0) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(0) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(123) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(123) TRYING WITH int(-123) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(-123) TRYING WITH string(3) "123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(123) TRYING WITH string(4) "-123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(-123) TRYING WITH string(4) "0123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: bool(false) TRYING WITH string(4) "123 " is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: int(123) TRYING WITH string(1) "0" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH string(3) "000" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: bool(false) TRYING WITH string(4) "+123" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: int(123) TRYING WITH string(4) "1.23" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH float(1.23) is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(5) "123e4" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(5) "0x123" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(6) "potato" is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(4) "EEBD" is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH bool(false) is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH NULL is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false)
Output for 5.4.18
PHP version: 5.4.18 TRYING WITH string(2) "-0" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(0) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(0) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(123) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(123) TRYING WITH int(-123) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(-123) TRYING WITH string(3) "123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(123) TRYING WITH string(4) "-123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(-123) TRYING WITH string(4) "0123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: bool(false) TRYING WITH string(4) "123 " is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: int(123) TRYING WITH string(1) "0" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH string(3) "000" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: bool(false) TRYING WITH string(4) "+123" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: int(123) TRYING WITH string(4) "1.23" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH float(1.23) is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(5) "123e4" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(5) "0x123" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(6) "potato" is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(4) "EEBD" is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH bool(false) is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH NULL is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false)
Output for 5.4.17
PHP version: 5.4.17 TRYING WITH string(2) "-0" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(0) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(0) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(123) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(123) TRYING WITH int(-123) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(-123) TRYING WITH string(3) "123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(123) TRYING WITH string(4) "-123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(-123) TRYING WITH string(4) "0123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: bool(false) TRYING WITH string(4) "123 " is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: int(123) TRYING WITH string(1) "0" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH string(3) "000" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: bool(false) TRYING WITH string(4) "+123" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: int(123) TRYING WITH string(4) "1.23" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH float(1.23) is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(5) "123e4" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(5) "0x123" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(6) "potato" is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(4) "EEBD" is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH bool(false) is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH NULL is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false)
Output for 5.4.16
PHP version: 5.4.16 TRYING WITH string(2) "-0" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(0) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(0) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(123) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(123) TRYING WITH int(-123) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(-123) TRYING WITH string(3) "123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(123) TRYING WITH string(4) "-123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(-123) TRYING WITH string(4) "0123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: bool(false) TRYING WITH string(4) "123 " is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: int(123) TRYING WITH string(1) "0" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH string(3) "000" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: bool(false) TRYING WITH string(4) "+123" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: int(123) TRYING WITH string(4) "1.23" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH float(1.23) is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(5) "123e4" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(5) "0x123" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(6) "potato" is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(4) "EEBD" is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH bool(false) is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH NULL is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false)
Output for 5.4.15
PHP version: 5.4.15 TRYING WITH string(2) "-0" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(0) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(0) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(123) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(123) TRYING WITH int(-123) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(-123) TRYING WITH string(3) "123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(123) TRYING WITH string(4) "-123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(-123) TRYING WITH string(4) "0123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: bool(false) TRYING WITH string(4) "123 " is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: int(123) TRYING WITH string(1) "0" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH string(3) "000" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: bool(false) TRYING WITH string(4) "+123" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: int(123) TRYING WITH string(4) "1.23" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH float(1.23) is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(5) "123e4" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(5) "0x123" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(6) "potato" is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(4) "EEBD" is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH bool(false) is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH NULL is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false)
Output for 5.4.14
PHP version: 5.4.14 TRYING WITH string(2) "-0" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(0) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(0) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(123) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(123) TRYING WITH int(-123) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(-123) TRYING WITH string(3) "123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(123) TRYING WITH string(4) "-123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(-123) TRYING WITH string(4) "0123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: bool(false) TRYING WITH string(4) "123 " is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: int(123) TRYING WITH string(1) "0" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH string(3) "000" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: bool(false) TRYING WITH string(4) "+123" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: int(123) TRYING WITH string(4) "1.23" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH float(1.23) is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(5) "123e4" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(5) "0x123" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(6) "potato" is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(4) "EEBD" is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH bool(false) is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH NULL is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false)
Output for 5.4.13
PHP version: 5.4.13 TRYING WITH string(2) "-0" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(0) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(0) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(123) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(123) TRYING WITH int(-123) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(-123) TRYING WITH string(3) "123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(123) TRYING WITH string(4) "-123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(-123) TRYING WITH string(4) "0123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: bool(false) TRYING WITH string(4) "123 " is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: int(123) TRYING WITH string(1) "0" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH string(3) "000" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: bool(false) TRYING WITH string(4) "+123" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: int(123) TRYING WITH string(4) "1.23" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH float(1.23) is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(5) "123e4" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(5) "0x123" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(6) "potato" is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(4) "EEBD" is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH bool(false) is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH NULL is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false)
Output for 5.4.12
PHP version: 5.4.12 TRYING WITH string(2) "-0" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(0) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(0) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(123) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(123) TRYING WITH int(-123) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(-123) TRYING WITH string(3) "123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(123) TRYING WITH string(4) "-123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(-123) TRYING WITH string(4) "0123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: bool(false) TRYING WITH string(4) "123 " is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: int(123) TRYING WITH string(1) "0" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH string(3) "000" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: bool(false) TRYING WITH string(4) "+123" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: int(123) TRYING WITH string(4) "1.23" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH float(1.23) is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(5) "123e4" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(5) "0x123" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(6) "potato" is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(4) "EEBD" is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH bool(false) is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH NULL is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false)
Output for 5.4.11
PHP version: 5.4.11 TRYING WITH string(2) "-0" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(0) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(0) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH int(123) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(123) TRYING WITH int(-123) is_int: bool(true) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(-123) TRYING WITH string(3) "123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(123) TRYING WITH string(4) "-123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(-123) TRYING WITH string(4) "0123" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: bool(false) TRYING WITH string(4) "123 " is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: int(123) TRYING WITH string(1) "0" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: int(0) TRYING WITH string(3) "000" is_int: bool(false) is_numeric: bool(true) regex: int(1) ctype_digit: bool(true) filter_var: bool(false) TRYING WITH string(4) "+123" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: int(123) TRYING WITH string(4) "1.23" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH float(1.23) is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(5) "123e4" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(5) "0x123" is_int: bool(false) is_numeric: bool(true) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(6) "potato" is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH string(4) "EEBD" is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH bool(false) is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false) TRYING WITH NULL is_int: bool(false) is_numeric: bool(false) regex: int(0) ctype_digit: bool(false) filter_var: bool(false)
Output for 5.3.21 - 5.3.29
<? $values = array( '-0', -0, 0, 123, -123, '123', '-123', '0123', '123 ', '0', '000', '+123', '1.23', 1.23, '123e4', '0x123', 'potato', 'EEBD', false, null, ); echo("PHP version: ".phpversion()."\n\n"); foreach($values as $value){ echo("TRYING WITH "); var_dump($value); echo("is_int: "); var_dump(is_int($value)); echo("is_numeric: "); var_dump(is_numeric($value)); echo("regex: "); var_dump(preg_match('/^\-?[0-9]+$/',$value)); echo("ctype_digit: "); var_dump(ctype_digit(ltrim((string)$value, '-'))); echo("filter_var: "); var_dump(filter_var($value, FILTER_VALIDATE_INT)); echo("\n"); echo("\n"); } ?>