3v4l.org

run code in 200+ PHP versions simultaneously
<?php $str = "Lorem ipsum \"dolor sit amet\", consectetur adipiscing elit, maecenas est felis \"sit amet\"."; $array = preg_split("/\"([\\w ]*)\"/", $str, -1, PREG_SPLIT_NO_EMPTY | PREG_SPLIT_DELIM_CAPTURE); print_r($array); ?>
based on WReEs
Output for 5.3.20 - 7.3.0
Array ( [0] => Lorem ipsum [1] => dolor sit amet [2] => , consectetur adipiscing elit, maecenas est felis [3] => sit amet [4] => . )