3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $str = 'CustomErrorLog "/errorlog wtf" hello bvc "jjrr" hello rrgg/x^$46/ "rggg£"'; preg_match_all('/(".*")(\S+)/', $str, $matches); var_dump($matches);
based on 9cb8n
Output for 4.3.0 - 7.1.0
array(3) { [0]=> array(1) { [0]=> string(62) ""/errorlog wtf" hello bvc "jjrr" hello rrgg/x^$46/ "rggg£"" } [1]=> array(1) { [0]=> string(55) ""/errorlog wtf" hello bvc "jjrr" hello rrgg/x^$46/ "" } [2]=> array(1) { [0]=> string(7) "rggg£"" } }