3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $sentence = "This is a red apple"; $words = array('red','apple'); $counts = array_intersect(str_word_count($sentence,1),$words); if(count($counts) == count($words)){ echo "Yes"; }
based on X7F9F
Output for 5.5.0 - 5.6.30, hhvm-3.10.1 - 3.22.0, 7.0.0 - 7.2.0
Yes