3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $words = "music band sound"; preg_match_all("/\w+/", strtoupper($words), $matches); $words = $matches[0]; var_dump($words);
Output for 4.3.0 - 7.1.0
array(3) { [0]=> string(5) "MUSIC" [1]=> string(4) "BAND" [2]=> string(5) "SOUND" }