3v4l.org

run code in 300+ PHP versions simultaneously
<?php $first="\x00\x01\x02"; $second="\x00\x01\x03"; var_dump(similar_text($first,$second,$percent),$percent,bin2hex($first),bin2hex($second));

preferences:
21.75 ms | 402 KiB | 5 Q