fork download
  1. <?php
  2. function ncd($x, $y) {
  3. $cx = strlen(gzcompress($x));
  4. $cy = strlen(gzcompress($y));
  5. return (strlen(gzcompress($x . $y)) - min($cx, $cy)) / max($cx, $cy);
  6. }
  7.  
  8. echo (ncd('this is a test', 'this was a test').'<br />)';
  9. echo (ncd('this is a test', 'this text is completely different'));
  10. ?>
Runtime error #stdin #stdout 0.02s 13664KB
stdin
Standard input is empty
stdout
Parse error: syntax error, unexpected ';' in /home/st6PCL/prog.php on line 8