3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $str1 = "gized"; $str2 = "eyes"; var_dump(metaphone($str1)); var_dump(metaphone($str2)); var_dump(soundex($str1)); var_dump(soundex($str2)); similar_text($str1,$str2,$sim); echo "Similarity: " . $sim . "\n"; var_dump(levenshtein($str1,$str2)); ?>
based on Llj2Z
Output for 5.3.20 - 7.2.0
string(3) "JST" string(3) "EYS" string(4) "G230" string(4) "E200" Similarity: 22.222222222222 int(4)