3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $text = 'foo.bar,baz?bak!qux'; $arr = preg_split('/[.,?!]/', $text, -1, PREG_SPLIT_NO_EMPTY); print_r($arr);
Output for 4.3.0 - 7.1.0
Array ( [0] => foo [1] => bar [2] => baz [3] => bak [4] => qux )