fork download
  1. <?php
  2. $string = 'The quick brown fox jumps over the lazy fox';
  3. echo preg_replace('/fox$/', 'dog', $string);
Success #stdin #stdout 0.01s 20520KB
stdin
Standard input is empty
stdout
The quick brown fox jumps over the lazy dog