fork(4) download
  1. <?php
  2. function cb($a){
  3. $num = $a[1];
  4. $dec = hexdec($num);
  5. return "&#$dec;";
  6. }
  7. $ent = preg_replace_callback("/\\\\x\{([\da-z]+)\}/i", 'cb', "\x{2f}, \x{3251}");
  8. $ustr = html_entity_decode($ent, ENT_NOQUOTES, 'UTF-8');
  9. echo $ustr;
  10.  
  11. ?>
Success #stdin #stdout 0.02s 13112KB
stdin
Standard input is empty
stdout
/, ㉑