fork(1) download
  1. <?php
  2. $string = 'hello';
  3. echo preg_replace('/he(l)l(o)/', '$0, $1, $2', $string);
Success #stdin #stdout 0.01s 20520KB
stdin
Standard input is empty
stdout
hello, l, o