3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "Hello; how are you;Hey, I am fine"; $new = preg_split("/(?<! );(?! )/", $string); print_r($new);

preferences:
24.07 ms | 405 KiB | 5 Q