fork(2) download
  1. <?php
  2.  
  3. $re = '/\X/u';
  4. $str = "γιωρ;γος.gr";
  5. preg_match_all($re, $str, $matches);
  6. if (in_array(";", $matches[0])) {
  7. echo -1;
  8. }
  9. else {
  10. print_r($matches[0]);
  11. }
  12.  
Success #stdin #stdout 0.02s 52472KB
stdin
Standard input is empty
stdout
-1