3v4l.org

run code in 300+ PHP versions simultaneously
<?php $urls = '<select><option value="http://foo.bar" selected="selected">value</option> <option value="http://bar.foo">test</option></select>'; $matches = array(); preg_match_all('/<option\svalue="([^"]*)">([^>]*)<\/option>/', $urls, $matches); var_dump($matches);

preferences:
45.17 ms | 402 KiB | 5 Q