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);

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
8.5.30.0130.00519.53
8.5.20.0100.00719.27
8.5.10.0120.00616.86
8.5.00.0150.00620.07
8.4.180.0160.00619.70
8.4.170.0130.00923.83
8.4.160.0130.00823.83
8.4.150.0070.00616.89
8.4.140.0140.00817.54
8.4.130.0120.00717.71
8.4.120.0110.00820.48
8.4.110.0070.00222.73
8.4.100.0060.01118.81
8.4.90.0050.00420.70
8.4.80.0120.00817.82
8.4.70.0080.01018.02
8.4.60.0100.01118.82
8.4.50.0110.01017.75
8.4.40.0070.01320.32
8.4.30.0140.00720.23
8.4.20.0030.00618.81
8.4.10.0080.00317.67
8.3.300.0140.00720.95
8.3.290.0120.00820.81
8.3.280.0140.00818.70
8.3.270.0120.01216.74
8.3.260.0080.00516.80
8.3.250.0100.00618.84
8.3.240.0060.00816.55
8.3.230.0100.00916.86
8.3.220.0140.00418.71
8.3.210.0030.00516.62
8.3.200.0060.00416.52
8.3.190.0050.00317.16
8.3.180.0110.00818.48
8.3.170.0090.00616.73
8.3.160.0120.00616.85
8.3.150.0100.01016.97
8.3.140.0130.00616.72
8.3.130.0080.00018.30
8.3.120.0060.00320.45
8.3.110.0080.00820.94
8.3.100.0040.00424.06
8.3.90.0080.00026.77
8.3.80.0070.00419.36
8.3.70.0070.00718.29
8.3.60.0120.00318.56
8.3.50.0100.00318.22
8.3.40.0040.01118.92
8.3.30.0150.00018.62
8.3.20.0050.00324.18
8.3.10.0040.00424.66
8.3.00.0090.00026.16
8.2.300.0130.00918.64
8.2.290.0090.01017.02
8.2.280.0050.00418.65
8.2.270.0070.01116.98
8.2.260.0030.00620.75
8.2.250.0070.01116.96
8.2.240.0030.00618.89
8.2.230.0090.00022.58
8.2.220.0160.00337.54
8.2.210.0080.00026.77
8.2.200.0030.00618.88
8.2.190.0070.00716.58
8.2.180.0080.00825.92
8.2.170.0150.00019.04
8.2.160.0090.00622.96
8.2.150.0050.00325.66
8.2.140.0080.00024.66
8.2.130.0080.00026.16
8.2.120.0000.00819.36
8.2.110.0100.00021.09
8.2.100.0040.00819.48
8.2.90.0050.00317.84
8.2.80.0080.00018.91
8.2.70.0090.00017.63
8.2.60.0060.00317.68
8.2.50.0030.00718.05
8.2.40.0000.00918.02
8.2.30.0000.00917.94
8.2.20.0040.00417.92
8.2.10.0040.00419.28
8.2.00.0000.01119.14
8.1.340.0110.00821.63
8.1.330.0130.00616.82
8.1.320.0130.00616.07
8.1.310.0030.00616.65
8.1.300.0120.00618.52
8.1.290.0090.00030.84
8.1.280.0070.00725.92
8.1.270.0080.00023.86
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0030.00620.99
8.1.230.0110.00022.82
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0000.00817.25
8.1.190.0040.00417.36
8.1.180.0030.00618.10
8.1.170.0040.00418.74
8.1.160.0000.00718.81
8.1.150.0070.00018.87
8.1.140.0040.00418.76
8.1.130.0000.00720.16
8.1.120.0020.00517.56
8.1.110.0050.00317.46
8.1.100.0080.00017.54
8.1.90.0040.00417.57
8.1.80.0040.00417.48
8.1.70.0060.00317.55
8.1.60.0040.00417.58
8.1.50.0000.00817.52
8.1.40.0080.00017.56
8.1.30.0030.00517.80
8.1.20.0040.00417.75
8.1.10.0040.00417.67
8.1.00.0070.00017.66
8.0.300.0000.00718.77
8.0.290.0060.00316.88
8.0.280.0080.00018.46
8.0.270.0050.00318.22
8.0.260.0060.00018.63
8.0.250.0070.00017.05
8.0.240.0050.00216.99
8.0.230.0030.00317.03
8.0.220.0040.00316.99
8.0.210.0030.00317.00
8.0.200.0040.00416.92
8.0.190.0050.00217.04
8.0.180.0070.00017.02
8.0.170.0030.00616.99
8.0.160.0030.00617.12
8.0.150.0000.00716.83
8.0.140.0000.00816.84
8.0.130.0030.00313.46
8.0.120.0040.00417.00
8.0.110.0000.00716.96
8.0.100.0030.00616.88
8.0.90.0040.00416.82
8.0.80.0110.00316.91
8.0.70.0180.00317.03
8.0.60.0120.00916.90
8.0.50.0060.01616.84
8.0.30.0090.01316.89
8.0.20.0070.01417.00
8.0.10.0070.01417.16
8.0.00.0040.01117.05
7.4.330.0000.00415.55
7.4.320.0060.00016.59
7.4.300.0000.00616.56
7.4.290.0030.00416.71
7.4.280.0000.00816.66
7.4.270.0070.00016.79
7.4.260.0050.00013.48
7.4.250.0030.00316.63
7.4.240.0000.00716.72
7.4.230.0000.00816.62
7.4.220.0000.00716.51
7.4.210.0050.00916.72
7.4.200.0100.00716.71
7.4.190.0050.01016.70
7.4.180.0070.00716.80
7.4.160.0090.00616.66
7.4.150.0090.00616.71
7.4.140.0070.00716.86
7.4.130.0090.00616.77
7.4.120.0090.01116.81
7.4.110.0060.01416.48
7.4.100.0090.00616.70
7.4.90.0110.01116.77
7.4.80.0040.01116.60
7.4.70.0100.01016.73
7.4.60.0000.01716.88
7.4.50.0090.01216.70
7.4.40.0150.00616.48
7.4.30.0120.00916.73
7.4.20.0110.00316.63
7.4.10.0040.01116.67
7.4.00.0060.00916.56
7.3.330.0030.00316.40
7.3.320.0060.00013.13
7.3.310.0050.00216.24
7.3.300.0050.00316.21
7.3.290.0100.00816.28
7.3.280.0030.01116.24
7.3.270.0060.00916.36
7.3.260.0030.01816.29
7.3.250.0030.01616.25
7.3.240.0130.00716.34
7.3.230.0100.01016.25
7.3.220.0070.00716.22
7.3.210.0060.01316.19
7.3.200.0000.01416.19
7.3.190.0040.01116.21
7.3.180.0090.00516.19
7.3.170.0070.00716.29
7.3.160.0070.00716.18
7.3.150.0110.00316.30
7.3.140.0000.01416.27
7.3.130.0120.00316.27
7.3.120.0070.00716.30
7.3.110.0040.00916.20
7.3.100.0110.00416.11
7.3.90.0060.01316.55
7.3.80.0070.00816.30
7.3.70.0090.01216.41
7.3.60.0070.00716.39
7.3.50.0060.00916.40
7.3.40.0000.01416.41
7.3.30.0090.00916.46
7.3.20.0000.01416.48
7.3.10.0110.00316.30
7.3.00.0070.00716.36
7.2.340.0080.00316.26

preferences:
53.04 ms | 1511 KiB | 5 Q