3v4l.org

run code in 300+ PHP versions simultaneously
<?php $texto = "this string should not match the regex"; preg_match_all("~{([^\d\W]\w*)\}~", $texto, $matches); var_dump($matches);

preferences:
39.67 ms | 402 KiB | 5 Q