3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = "11a. A numbered agenda item\nUnnumbered agenda item\n12. Another numbered agenda item\nAnother UNnumbered agenda item\n13. A numbered agenda item"; if (preg_match_all('/^(\d+[a-z]?\.)\s*(.*(?:\R(?!\d+[a-z]?\.).*)*)/m', $text, $matches)) { print_r(array_combine($matches[1], $matches[2])); }

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.3.40.0070.01119.02
8.3.30.0110.00418.79
8.3.20.0080.00024.18
8.3.10.0080.00024.66
8.3.00.0070.00026.16
8.2.170.0140.00718.92
8.2.160.0140.00022.96
8.2.150.0120.00325.66
8.2.140.0070.00024.66
8.2.130.0040.00426.16
8.2.120.0080.00021.05
8.2.110.0070.01020.38
8.2.100.0090.00317.84
8.2.90.0000.00819.26
8.2.80.0040.00418.03
8.2.70.0050.00317.63
8.2.60.0050.00317.92
8.2.50.0000.00818.05
8.2.40.0040.00419.94
8.2.30.0000.00718.11
8.2.20.0000.00718.19
8.2.10.0080.00019.28
8.2.00.0040.00419.11
8.1.270.0100.00623.77
8.1.260.0030.00626.35
8.1.250.0040.00428.09
8.1.240.0060.00321.03
8.1.230.0090.00317.77
8.1.220.0040.00417.74
8.1.210.0070.00318.77
8.1.200.0000.00917.35
8.1.190.0040.00417.22
8.1.180.0050.00319.13
8.1.170.0040.00418.67
8.1.160.0000.00719.11
8.1.150.0050.00518.78
8.1.140.0080.00018.91
8.1.130.0000.00720.14
8.1.120.0080.00017.58
8.1.110.0000.00717.55
8.1.100.0000.00717.54
8.1.90.0040.00417.52
8.1.80.0030.00617.57
8.1.70.0070.00017.58
8.1.60.0080.00017.69
8.1.50.0030.00617.66
8.1.40.0070.00017.60
8.1.30.0030.00617.71
8.1.20.0000.00717.66
8.1.10.0080.00017.79
8.1.00.0080.00017.68
8.0.300.0000.00818.77
8.0.290.0080.00016.88
8.0.280.0040.00418.34
8.0.270.0030.00318.11
8.0.260.0030.00318.43
8.0.250.0000.00716.94
8.0.240.0070.00017.10
8.0.230.0000.00817.05
8.0.220.0000.00716.99
8.0.210.0040.00417.00
8.0.200.0000.00817.06
8.0.190.0000.00816.95
8.0.180.0000.00916.99
8.0.170.0030.00617.05
8.0.160.0080.00017.00
8.0.150.0070.00016.82
8.0.140.0040.00416.95
8.0.130.0030.00313.50
8.0.120.0040.00416.84
8.0.110.0080.00016.99
8.0.100.0070.00016.79
8.0.90.0040.00417.07
8.0.80.0090.00616.96
8.0.70.0000.00716.95
8.0.60.0000.00716.83
8.0.50.0050.00217.05
8.0.30.0110.00316.96
8.0.20.0070.00716.99
8.0.10.0070.00717.09
8.0.00.0070.01317.17
7.4.330.0000.00515.55
7.4.320.0000.00716.69
7.4.300.0000.00616.70
7.4.290.0000.00816.73
7.4.280.0080.00016.58
7.4.270.0000.00716.78
7.4.260.0000.00513.56
7.4.250.0080.00016.61
7.4.240.0040.00316.79
7.4.230.0070.00016.87
7.4.220.0060.00216.50
7.4.210.0060.00816.62
7.4.200.0080.00016.78
7.4.160.0070.00716.76
7.4.150.0070.00616.87
7.4.140.0060.01316.60
7.4.130.0040.01516.64
7.4.120.0040.01216.83
7.4.110.0100.00316.63
7.4.100.0060.01216.75
7.4.90.0000.01316.59
7.4.80.0080.00516.53
7.4.70.0140.00316.65
7.4.60.0100.00716.80
7.4.50.0140.00316.71
7.4.40.0060.00616.54
7.4.30.0090.00316.65
7.4.20.0030.00916.41
7.4.10.0060.01116.65
7.4.00.0090.00916.71
7.3.330.0060.00216.23
7.3.320.0030.00313.23
7.3.310.0040.00416.30
7.3.300.0060.00016.37
7.3.290.0110.00516.34
7.3.280.0070.00716.35
7.3.270.0000.01416.27
7.3.260.0000.01416.42
7.3.250.0090.00616.31
7.3.240.0100.00316.35
7.3.230.0140.00416.35
7.3.220.0060.00716.29
7.3.210.0040.00916.25
7.3.200.0100.00716.26
7.3.190.0130.00316.29
7.3.180.0040.01416.26
7.3.170.0100.00316.26
7.3.160.0060.00616.29
7.3.150.0090.00316.32
7.3.140.0060.00616.27
7.3.130.0070.00716.22
7.3.120.0100.00316.29
7.3.110.0100.00316.23
7.3.100.0060.00616.19
7.3.90.0060.00616.61
7.3.80.0030.01016.38
7.3.70.0100.00716.39
7.3.60.0000.01616.55
7.3.50.0080.00416.51
7.3.40.0080.00416.47
7.3.30.0100.00316.43
7.3.20.0140.00416.43
7.3.10.0120.00316.40
7.3.00.0030.01116.49

preferences:
60.7 ms | 400 KiB | 5 Q