fork(2) download
  1. <?php
  2.  
  3. $str = '\\\\a';
  4. echo $str . PHP_EOL;
  5. $r = preg_replace('~\\\\~s', '*', $str);
  6. echo $r;
Success #stdin #stdout 0.02s 52432KB
stdin
Standard input is empty
stdout
\\a
**a