3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $str1 = "the cat is on the roof"; $str2 = "the mouse is on the roof"; $chars = similar_text($str1, $str2, $percent); echo $chars . "\n"; echo $percent;
Output for 4.3.0 - 5.6.28, 7.0.0 - 7.1.0
19 82.608695652174
Output for hhvm-3.10.0 - 3.12.0
19 82.608695983887