3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php print_r(str_word_count(' one two three four five six ', 2));
based on TnQfl
Output for 4.3.0 - 7.1.0
Array ( [3] => one [9] => two [15] => three [23] => four [30] => five [37] => six )