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"; $array_1 = explode(" ", $str1); $array_2 = explode(" ", $str2); echo count(array_diff($array_1, $array_2));
Output for 4.3.0 - 7.1.0
1