3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $s = "I have a very romantic� and tender soul; my heart is full �of love and passion, which I desire to share with my soul-mate. I am a very caring and friendly girl. I am also intelligent and a very understanding person with good sense of humor. I have many interests. For example, sports, art, nature, photography�"; var_dump( preg_match_all('/(([a-zA-Z0-9\,\.\'\"\;\:\-\!\?]+){1,}\s{0,})+/', $s, $matches), $matches );
Output for 4.3.0 - 7.1.0
int(3) array(3) { [0]=> array(3) { [0]=> string(22) "I have a very romantic" [1]=> string(34) "and tender soul; my heart is full " [2]=> string(251) "of love and passion, which I desire to share with my soul-mate. I am a very caring and friendly girl. I am also intelligent and a very understanding person with good sense of humor. I have many interests. For example, sports, art, nature, photography" } [1]=> array(3) { [0]=> string(8) "romantic" [1]=> string(5) "full " [2]=> string(11) "photography" } [2]=> array(3) { [0]=> string(8) "romantic" [1]=> string(4) "full" [2]=> string(11) "photography" } }