3v4l.org

run code in 300+ PHP versions simultaneously
<?php $txt = " {ABC} + 1 - 1 {DEF} + 2 - 2 {IJK} + 3 - 3 {LMN} + 4 - 4 "; preg_match_all('/{[^{]*/', $txt, $matches); print_r($matches);

preferences:
43.03 ms | 402 KiB | 5 Q