3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(preg_match_all("~ :[^ ]+ ~", "Toto je nejaký text so smajlíkmi, like this. :D Fuck yourself :/ and magyar :-X :D :-)", $matches) ); var_dump($matches);
Output for 4.3.0 - 7.2.0
int(3) array(1) { [0]=> array(3) { [0]=> string(4) " :D " [1]=> string(8) " :/ and " [2]=> string(5) " :-X " } }