3v4l.org

run code in 500+ PHP versions simultaneously
<?php $ss3="How to make a book"; $words = array ("book","paper","page","sheet"); $new_str_array = str_word_count($ss3,1); $founded_words = array_intersect($words,$new_str_array); if(count($founded_words) > 0){ echo "Founded : ". implode(',',$founded_words); }else{ echo "Founded Nothing"; }

preferences:
62.79 ms | 2074 KiB | 5 Q