fork download
  1. <?php
  2.  
  3. $fp = fopen("php://stdin", "r") or die("не удалось прочесть stdin");
  4. while (!feof($fp)) {
  5. $line = fgets($fp);
  6. '|<p>\s*\w|',
  7. function ($matches) {
  8. return strtolower($matches[0]);
  9. },
  10. $line
  11. );
  12. echo $line;
  13. }
  14. fclose($fp);
  15. ?>
Success #stdin #stdout 0.02s 52472KB
stdin
Standard input is empty
stdout
Standard output is empty