3v4l.org

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

preferences:
33.31 ms | 402 KiB | 5 Q