3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input = 'https://someurl.com "This is a \"quote\" in the caption"'; list($url, $caption)=(preg_match('~(\S+) "(.+)"~', $input, $out) ? array_slice($out,1) : ['','']); echo "url: $url\ncaption: $caption";

preferences:
30.38 ms | 405 KiB | 5 Q