fork(5) download
  1. <?php
  2.  
  3. $string = "�*�v��R�<�";
  4.  
  5. if (preg_match('/[^\x20-\x7f]/', $string)) {
  6. echo "Correu mal, chamar função novamente!".PHP_EOL;
  7. }
  8. else {
  9. echo "Todos os caracteres são legiveis!".PHP_EOL;
  10. }
  11.  
  12.  
  13. $string = "HGKER%(()W(/T%&)WREGDG";
  14.  
  15. if (preg_match('/[^\x20-\x7f]/', $string)) {
  16. echo "Correu mal, chamar função novamente!".PHP_EOL;
  17. }
  18. else {
  19. echo "Todos os caracteres são legiveis!".PHP_EOL;
  20. }
Success #stdin #stdout 0.01s 20520KB
stdin
Standard input is empty
stdout
Correu mal, chamar função novamente!
Todos os caracteres são legiveis!