3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $var_1 = 'PHP IS GREAT'; $var_2 = 'WITH MYSQL'; similar_text($var_1, $var_2, $percent); echo $percent; // 27.272727272727 similar_text($var_2, $var_1, $percent); echo $percent; // 18.181818181818
based on g1Nrv
Output for 5.6.0 - 5.6.30, 7.0.0 - 7.3.0rc3
27.27272727272718.181818181818
Output for hhvm-3.15.4
27.27272796630918.181818008423