4 $php = getenv('TEST_PHP_EXECUTABLE');
5 if (substr(PHP_OS
, 0, 3) != 'WIN') {
6 exec($php . ' -n -r \''
7 . '$lengths = array(10,20000,10000,5,10000,3);'
8 . 'foreach($lengths as $length) {'
9 . ' for($i=0;$i<$length;$i++) print chr(65+$i % 27);'
11 . '}\'', $out, $status);
13 exec($php . ' -n -r "'
14 . '$lengths = array(10,20000,10000,5,10000,3);'
15 . 'foreach($lengths as $length) {'
16 . ' for($i=0;$i<$length;$i++) print chr(65+$i % 27);'
18 . '}"', $out, $status);
21 print "md5(line $i)= " . md5($out[$i]) . " (length " .
22 strlen($out[$i]) . ")\n";