fork(1) download
  1. <?php
  2.  
  3. echo filter_var("1--1--+--1", FILTER_VALIDATE_INT), ".\n";
  4. echo filter_var("1", FILTER_VALIDATE_INT), ".\n";
  5. echo filter_var("-1", FILTER_VALIDATE_INT), ".\n";
  6. echo filter_var("+1", FILTER_VALIDATE_INT), ".\n";
  7. echo filter_var("a1", FILTER_VALIDATE_INT), ".\n";
  8. echo filter_var("1a", FILTER_VALIDATE_INT), ".\n";
  9. echo filter_var("1.2", FILTER_VALIDATE_INT), ".\n";
  10. echo filter_var("1.0", FILTER_VALIDATE_INT), ".\n";
  11. echo filter_var("1+1", FILTER_VALIDATE_INT), ".\n";
  12. echo filter_var(" 1", FILTER_VALIDATE_INT), ".\n";
  13. echo filter_var("1 ", FILTER_VALIDATE_INT), ".\n";
  14. echo filter_var("01", FILTER_VALIDATE_INT), ".\n";
  15. echo filter_var("1111111111111111111111111111", FILTER_VALIDATE_INT), ".\n";
  16. echo filter_var("1 1", FILTER_VALIDATE_INT), ".\n";
Success #stdin #stdout 0.02s 24400KB
stdin
Standard input is empty
stdout
.
1.
-1.
1.
.
.
.
.
.
1.
1.
.
.
.