fork(2) download
  1. <?php
  2. $str = pack("H*","F09F8C80F09F8C80F09F97BFF09F97BE");
  3.  
  4. print($str);
  5. print("\n");
  6.  
  7. // preg_match_allの第三引数が省略可能になったのは5.4.0から。
  8. // このサイトはPHP 5.2.11だから無理。
  9. // http://p...content-available-to-author-only...p.net/manual/en/function.preg-match-all.php
  10.  
  11.  
  12. // http://w...content-available-to-author-only...p.net/manual/en/reference.pcre.pattern.modifiers.php
  13. // u (PCRE8)
  14. // This modifier turns on additional functionality of PCRE
  15. // that is incompatible with Perl.
  16. // Pattern strings are treated as UTF-8.
  17. // This modifier is available from PHP 4.1.0 or greater on Unix
  18. // and from PHP 4.2.3 on win32.
  19. // UTF-8 validity of the pattern is checked since PHP 4.3.5.
  20.  
  21.  
  22. $x = null;
  23. print(preg_match_all("/[\\x{1F300}-\\x{1f5ff}]/u",$str,$x));
  24. ?>
Success #stdin #stdout 0.02s 13112KB
stdin
Standard input is empty
stdout
🌀🌀🗿🗾
4