3v4l.org

run code in 300+ PHP versions simultaneously
<?php $re = '/^([^:\n\r]+):(.*(?:\R(?![^:\n\r]+:[^:\n\r]*$).*)*)/m'; $str = 'Name: John Doe Age: 23 Primary Language: English Description: This is a multiline description field that I want to capture Fri, 02 Sep 2022 14:46:45 -0500 Country: Canada'; preg_match_all($re, $str, $matches, PREG_SET_ORDER, 0); print_r($matches);

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.10.0100.00719.99
8.5.00.0100.01220.22
8.4.150.0020.00014.05
8.4.140.0110.01117.61
8.4.130.0130.00817.74
8.4.120.0130.00720.45
8.4.110.0090.00819.80
8.4.100.0100.00718.70
8.4.90.0130.00920.88
8.4.80.0040.00518.99
8.4.70.0050.00418.86
8.4.60.0040.00418.82
8.4.50.0110.01018.67
8.4.40.0090.00618.00
8.4.30.0140.00418.71
8.4.20.0100.01017.96
8.4.10.0090.00022.08
8.3.280.0220.00818.34
8.3.270.0090.01016.60
8.3.260.0140.00816.29
8.3.250.0060.00318.88
8.3.240.0130.00616.82
8.3.230.0110.00816.73
8.3.220.0040.00418.64
8.3.210.0080.01016.64
8.3.200.0120.00916.67
8.3.190.0080.00817.30
8.3.180.0050.00318.65
8.3.170.0070.01116.59
8.3.160.0070.01017.14
8.3.150.0110.00718.74
8.3.140.0080.00018.70
8.3.130.0050.00316.40
8.3.120.0000.01620.53
8.3.110.0070.00420.94
8.3.100.0130.00724.06
8.3.90.0080.00026.77
8.3.80.0080.00316.50
8.3.70.0110.01116.58
8.3.60.0090.00616.75
8.3.50.0170.00318.32
8.3.40.0070.00720.29
8.3.30.0150.00618.63
8.3.20.0000.00724.18
8.3.10.0040.00424.66
8.3.00.0000.00826.16
8.2.290.0140.00616.63
8.2.280.0040.00418.57
8.2.270.0140.00716.78
8.2.260.0040.00416.87
8.2.250.0040.00416.71
8.2.240.0100.00019.25
8.2.230.0040.00422.58
8.2.220.0080.00037.54
8.2.210.0000.00726.77
8.2.200.0060.00318.54
8.2.190.0040.01116.75
8.2.180.0110.00325.92
8.2.170.0140.00022.96
8.2.160.0100.01022.96
8.2.150.0060.00325.66
8.2.140.0050.00324.66
8.2.130.0060.00326.16
8.2.120.0050.00321.31
8.2.110.0060.00320.57
8.2.100.0060.00917.66
8.2.90.0040.00418.21
8.2.80.0060.00319.20
8.2.70.0000.00917.80
8.2.60.0000.00918.22
8.2.50.0060.00318.10
8.2.40.0000.00820.57
8.2.30.0000.00718.04
8.2.20.0040.00419.21
8.2.10.0050.00217.95
8.2.00.0080.00019.12
8.1.330.0120.00816.38
8.1.320.0110.00816.46
8.1.310.0190.00016.15
8.1.300.0090.00018.16
8.1.290.0060.00330.84
8.1.280.0150.00625.92
8.1.270.0040.00424.66
8.1.260.0050.00326.35
8.1.250.0090.00028.09
8.1.240.0040.00423.83
8.1.230.0080.00320.96
8.1.220.0000.00817.74
8.1.210.0050.00318.77
8.1.200.0060.00317.35
8.1.190.0040.00417.35
8.1.180.0050.00318.10
8.1.170.0060.00318.91
8.1.160.0050.00318.90
8.1.150.0040.00418.74
8.1.140.0020.00517.49
8.1.130.0000.00718.77
8.1.120.0080.00017.45
8.1.110.0000.00817.56
8.1.100.0100.00717.49
8.1.90.0090.00417.57
8.1.80.0070.00517.47
8.1.70.0160.00017.42
8.1.60.0130.00617.56
8.1.50.0110.00517.54
8.1.40.0130.00717.59
8.1.30.0170.00217.61
8.1.20.0110.00817.61
8.1.10.0140.00517.64
8.1.00.0200.00017.60
8.0.300.0050.00319.83
8.0.290.0080.00016.88
8.0.280.0030.00318.41
8.0.270.0000.00718.16
8.0.260.0000.00818.42
8.0.250.0050.00317.06
8.0.240.0040.00417.06
8.0.230.0050.01017.00
8.0.220.0120.00416.92
8.0.210.0120.00516.83
8.0.200.0130.00316.94
8.0.190.0160.00216.94
8.0.180.0100.00716.96
8.0.170.0150.00217.01
8.0.160.0100.00817.04
8.0.150.0090.00716.93
8.0.140.0110.00316.96
8.0.130.0100.00516.88
8.0.120.0130.00416.84
8.0.110.0100.00516.80
8.0.100.0130.00316.92
8.0.90.0100.00716.98
8.0.80.0120.00416.82
8.0.70.0080.00816.86
8.0.60.0110.00516.93
8.0.50.0140.00216.85
8.0.30.0050.01116.87
8.0.20.0100.00516.96
8.0.10.0130.00317.01
7.4.330.0030.00315.55
7.4.320.0050.00316.61
7.4.300.0110.00716.70
7.4.290.0090.00916.61
7.4.280.0140.00316.67
7.4.270.0120.00616.66
7.4.260.0070.00916.56
7.4.250.0110.00116.59
7.4.240.0110.00216.72
7.4.230.0080.00816.72
7.4.220.0050.00816.67
7.4.210.0100.00416.63
7.4.200.0120.00316.62
7.4.190.0110.00516.68
7.4.180.0130.00416.64
7.4.160.0110.00516.64
7.4.150.0150.00116.73
7.4.140.0110.00516.55
7.4.130.0100.00616.66
7.4.120.0070.00916.66
7.4.110.0110.00516.45
7.4.100.0120.00316.77
7.4.90.0150.00116.65
7.4.80.0100.00516.53
7.4.70.0130.00116.64
7.4.60.0090.00516.64
7.4.50.0080.00516.55
7.4.40.0100.00516.46
7.4.30.0090.00516.64
7.4.20.0050.00716.56
7.4.10.0080.00416.54
7.4.00.0110.00116.60

preferences:
132.91 ms | 403 KiB | 5 Q