3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $array_1 = explode(" ", $str1); $array_2 = explode(" ", $str1); echo count(array_diff($array_1, $array_2));
Output for 5.0.4 - 7.1.0
Notice: Undefined variable: str1 in /in/Wkj9Q on line 2 Notice: Undefined variable: str1 in /in/Wkj9Q on line 3 0
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: str1 in /in/Wkj9Q on line 2 Notice: Undefined variable: str1 in /in/Wkj9Q on line 3 0