3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = '<p>{titleInformation}<p>'; var_export( preg_split('/({[^}]*})/', $string, 0, PREG_SPLIT_DELIM_CAPTURE) );

preferences:
25.38 ms | 405 KiB | 5 Q