3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "Hello this is {name} and I like to {verb} my {noun}{punctuation}"; preg_match_all("/{\w+}/", $str, $matches); var_dump($matches);

preferences:
38.6 ms | 402 KiB | 5 Q