3v4l.org

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

preferences:
48.69 ms | 402 KiB | 5 Q