3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = '{myTag}Here is the string{/myTag}'; preg_match_all('/{[\w]+}(.*?){[\w\/]+}/',$str,$m); print_r($m[1]);

preferences:
68.96 ms | 402 KiB | 5 Q