3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php similar_text("reight", "right", $percent); echo $percent . "<br>"; similar_text("reight", "rate", $percent); echo $percent . "<br>";
based on 6PfP8
Output for 4.3.0 - 5.6.30, 7.0.0 - 7.2.0
90.909090909091<br>40<br>
Output for hhvm-3.10.1 - 3.17.3
90.909088134766<br>40<br>