3v4l.org

run code in 300+ PHP versions simultaneously
<?php $query = "-exclude -\"exclude phrase\" \"phrase 1\" keyword +k:v -k2:v2 +\"q kw\":2"; $ATOM_REGEX = '("[^"]+"|[^"\s]+)'; $match = preg_match_all("/(-|+)?($ATOM_REGEX:)?($ATOM_REGEX)/", $query); print_r($match);

preferences:
40.7 ms | 402 KiB | 5 Q