3v4l.org

run code in 300+ PHP versions simultaneously
<?php // example code ini_set('pcre.backtrack_limit', 1); $text = "<p>www.test.com</p>"; $chunks = is_null($text) ? array('') : preg_split('/(<.+?>)/is', $text, -1, PREG_SPLIT_DELIM_CAPTURE); var_dump($chunks);

preferences:
12.13 ms | 406 KiB | 5 Q