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\,\.\'\"]+/', $s, $matches), $matches );
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
int(57) array(1) { [0]=> array(57) { [0]=> string(1) "I" [1]=> string(4) "have" [2]=> string(1) "a" [3]=> string(4) "very" [4]=> string(8) "romantic" [5]=> string(3) "and" [6]=> string(6) "tender" [7]=> string(4) "soul" [8]=> string(2) "my" [9]=> string(5) "heart" [10]=> string(2) "is" [11]=> string(4) "full" [12]=> string(2) "of" [13]=> string(4) "love" [14]=> string(3) "and" [15]=> string(8) "passion," [16]=> string(5) "which" [17]=> string(1) "I" [18]=> string(6) "desire" [19]=> string(2) "to" [20]=> string(5) "share" [21]=> string(4) "with" [22]=> string(2) "my" [23]=> string(4) "soul" [24]=> string(5) "mate." [25]=> string(1) "I" [26]=> string(2) "am" [27]=> string(1) "a" [28]=> string(4) "very" [29]=> string(6) "caring" [30]=> string(3) "and" [31]=> string(8) "friendly" [32]=> string(5) "girl." [33]=> string(1) "I" [34]=> string(2) "am" [35]=> string(4) "also" [36]=> string(11) "intelligent" [37]=> string(3) "and" [38]=> string(1) "a" [39]=> string(4) "very" [40]=> string(13) "understanding" [41]=> string(6) "person" [42]=> string(4) "with" [43]=> string(4) "good" [44]=> string(5) "sense" [45]=> string(2) "of" [46]=> string(6) "humor." [47]=> string(1) "I" [48]=> string(4) "have" [49]=> string(4) "many" [50]=> string(10) "interests." [51]=> string(3) "For" [52]=> string(8) "example," [53]=> string(7) "sports," [54]=> string(4) "art," [55]=> string(7) "nature," [56]=> string(11) "photography" } }