#### Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

# PHP Decode

<?php function simhash($d1, $d2) { //echo count(explode(' ', $d1)); //print_r (ran..

#### Decoded Output download

```
<?php
function simhash($d1, $d2) {
//echo count(explode(' ', $d1));
//print_r (range(0, count(explode(' ', $d1))));
$h1 = genhash(explode(' ', $d1), range(0, count(explode(' ', $d1)) - 1));
//$h1 = genhash(explode(' ', $d1), NULL);
$h2 = genhash(explode(' ', $d2), NULL);
//echo md5($h1);
var_dump(cmphash($h1, $h2));
}
$a1 = 'The only formal pre-requisites was to have successfully completed Intro to Data Science or some basic course on machine learning. Familiarity with computer programming is assumed. The course relies heavily on such a mathematical tools as the linear algebra, probability and statistics method, multi-variate calculus, and function optimization. The basic mathematical concepts will be introduced when we needed, but students will be expected to assimilate a non-trivial amount of mathematical concepts in a fairly short time. haha';
$a2 = 'The only formal pre-requisites is to have successfully completed Intro to Data Science or any basic course on machine learning. Familiarity with computer programming is assumed. The course relies heavily on such mathematical tools as linear algebra, probability and statistics, multi-variate calculus, and function optimization. The basic mathematical concepts will be introduced when needed, but students will be expected to assimilate a non-trivial amount of mathematical concepts in a fairly short time.';
simhash($a1, $a2); //output 0.88125
?>
```

#### Did this file decode correctly?

#### Original Code

```
<?php
function simhash($d1, $d2) {
//echo count(explode(' ', $d1));
//print_r (range(0, count(explode(' ', $d1))));
$h1 = genhash(explode(' ', $d1), range(0, count(explode(' ', $d1)) - 1));
//$h1 = genhash(explode(' ', $d1), NULL);
$h2 = genhash(explode(' ', $d2), NULL);
//echo md5($h1);
var_dump(cmphash($h1, $h2));
}
$a1 = 'The only formal pre-requisites was to have successfully completed Intro to Data Science or some basic course on machine learning. Familiarity with computer programming is assumed. The course relies heavily on such a mathematical tools as the linear algebra, probability and statistics method, multi-variate calculus, and function optimization. The basic mathematical concepts will be introduced when we needed, but students will be expected to assimilate a non-trivial amount of mathematical concepts in a fairly short time. haha';
$a2 = 'The only formal pre-requisites is to have successfully completed Intro to Data Science or any basic course on machine learning. Familiarity with computer programming is assumed. The course relies heavily on such mathematical tools as linear algebra, probability and statistics, multi-variate calculus, and function optimization. The basic mathematical concepts will be introduced when needed, but students will be expected to assimilate a non-trivial amount of mathematical concepts in a fairly short time.';
simhash($a1, $a2); //output 0.88125
```

#### Function Calls

count |
1 |

range |
1 |

explode |
2 |

simhash |
1 |

#### Stats

MD5 |
fcb223aab612ed3cdf4e9abd791028b8 |

Eval Count |
0 |

Decode Time |
121 ms |