3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = '( ( LED AND DIODE ) OR ( "LEE power" and system ) ) '; $arr = preg_split('/[^\s"]+|"([^"]*)"/g', $text); print_r($arr);

preferences:
49.08 ms | 402 KiB | 5 Q