fork(2) download
  1. <?php
  2.  
  3. $data =
  4. preg_match_all('/<(\S+)>\s->\s<\1>/', file_get_contents('php://stdin'), $m)
  5. ? $m[1]
  6. : array()
  7. ;
  8. print_r($data);
Success #stdin #stdout 0.01s 20520KB
stdin
<a@b> -> <c@d>, <e@f> -> <e@f>, 
<g@h> -> <g@h>, <i@j> -> <i@j>,
<k@l> -> <m@n>,
stdout
Array
(
    [0] => e@f
    [1] => g@h
    [2] => i@j
)