3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = '<Location "/wtf" "yo" hello> Allow from all </Location>'; preg_match('/^<[\S\s]+?>/', $str, $matches); $res = trim($matches[0], "<>"); var_dump($res );

preferences:
42.52 ms | 402 KiB | 5 Q