fork download
  1. <?php
  2.  
  3. // your code goes here
  4. echo preg_replace_callback("/./", function($matched) {
  5. return '\x'.dechex(ord($matched[0]));
  6. }, '🐘');
Success #stdin #stdout 0.02s 26400KB
stdin
Standard input is empty
stdout
\xf0\x9f\x90\x98