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(1) array(3) { [0]=> array(1) { [0]=> string(308) "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" } [1]=> array(1) { [0]=> string(11) "photography" } [2]=> array(1) { [0]=> string(11) "photography" } }