3v4l.org

run code in 500+ PHP versions simultaneously
<?php $text = '<strong>this test is strong</strong> this text is out tags'; print_r(preg_split('/\s*<strong>(.*?)<\/strong>\s*/s', $text, -1, PREG_SPLIT_NO_EMPTY| PREG_SPLIT_DELIM_CAPTURE));

preferences:
115.83 ms | 1407 KiB | 5 Q