3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = '[24-Jun-2021 09:15:24 America/New_York] One line data here [24-Jun-2021 09:15:27 America/New_York] One line data here [24-Jun-2021 09:15:31 America/New_York] One line data here [24-Jun-2021 13:49:21 America/New_York] One line data here [24-Jun-2021 13:49:27 America/New_York] One line data here [24-Jun-2021 13:49:27 America/New_York] One line data here [24-Jun-2021 13:49:28 America/New_York] Start of multi-line data here multi-line data here multi-line data here multi-line data here multi-line data here multi-line data here multi-line data here end of multi-line data here [24-Jun-2021 13:51:16 America/New_York] One line data here [24-Jun-2021 14:51:25 America/New_York] One line data here '; preg_match_all('/^\[24-Jun-2021\s13:.+(?:\R(?!\[\d\d).*)*/im', $string, $array); print_r($array);
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [0] => Array ( [0] => [24-Jun-2021 13:49:21 America/New_York] One line data here [1] => [24-Jun-2021 13:49:27 America/New_York] One line data here [2] => [24-Jun-2021 13:49:27 America/New_York] One line data here [3] => [24-Jun-2021 13:49:28 America/New_York] Start of multi-line data here multi-line data here multi-line data here multi-line data here multi-line data here multi-line data here multi-line data here end of multi-line data here [4] => [24-Jun-2021 13:51:16 America/New_York] One line data here ) )

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:
41.77 ms | 1512 KiB | 4 Q