3v4l.org

run code in 300+ PHP versions simultaneously
<?php $re = '/\[[^][]+\]\h+=>\h+STRING:\h+"(\w+(?:-\w+)*)"/'; $str = '[TIMETRA-VRTR-MIB::vRtrIfName.22.178] => STRING: "interface900" '; preg_match_all($re, $str, $matches); print_r($matches[1]);

preferences:
34.71 ms | 405 KiB | 5 Q