fork download
  1. <?php
  2.  
  3. echo preg_replace('/(\d+) \+ (\d+)/', '$1/$2', implode(" + ", range(1, 12)));
Success #stdin #stdout 0.02s 24328KB
stdin
Standard input is empty
stdout
1/2 + 3/4 + 5/6 + 7/8 + 9/10 + 11/12