3v4l.org

run code in 300+ PHP versions simultaneously
<?php preg_match( '/ \\b # word boundary href # "href" attribute \\s* # optional whitespace = # literal "=" \\s* # optional whitespace (["\']) # open quote (captured for later backreference) ([^"\']+) \\1 # the same quote character as the opening quote /x', 'href=\'/\'', $matches ); print_r($matches);

preferences:
30.63 ms | 402 KiB | 5 Q