3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php // split the phrase by any number of commas or space characters, // which include " ", \r, \t, \n and \f $keywords = preg_split("/[\s,]+/", "hypertext language, programming"); print_r($keywords); ?>
Output for 4.3.0 - 7.2.0
Array ( [0] => hypertext [1] => language [2] => programming )