3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = <<<DATA 14/12/2020 12:02:50 LOG_HERE_1 XXXXX 14/12/2020 12:04:55 LOG_HERE_2 XXXXX 14/12/2020 12:10:33 LOG_HERE_3 XXXXX DATA; $pattern = "~^(\d{2}/\d{2}/\d{4}\h\d{2}:\d{2}:\d{2}\b.*\R(?:(?!\d{2}/\d{2}/\d{4}\h\d{2}:\d{2}:\d{2}\b).*\R?)*)~m"; $result = preg_split($pattern, $data, -1, PREG_SPLIT_DELIM_CAPTURE | PREG_SPLIT_NO_EMPTY); print_r($result);
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [0] => 14/12/2020 12:02:50 LOG_HERE_1 XXXXX [1] => 14/12/2020 12:04:55 LOG_HERE_2 XXXXX [2] => 14/12/2020 12:10:33 LOG_HERE_3 XXXXX )

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
134.34 ms | 405 KiB | 5 Q