3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $subject = "Hello,hello2 world"; $pattern = '#/ |,|\)|\(|\;|\./#'; $arr = preg_split('/ |,|\)|\(|\;|\./',$subject); print_r($arr);
Output for 4.3.0 - 7.1.0
Array ( [0] => Hello [1] => hello2 [2] => world )