3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = 'H: 290‐314 P: 280‐301+330U+200B+331string‐305+351+338‐308+310 [2]'; if (preg_match_all('~(?:\G(?!\A)(?:[^\d\s]*200B)?|P:\h*)[^\d\s]*\K(?!200B)\d+~', $text, $matches)) { print_r($matches[0]); }

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.0110.00916.89
8.5.00.0150.00720.05
8.4.160.0120.01023.74
8.4.150.0020.00014.05
8.4.140.0120.00917.85
8.4.130.0130.00718.92
8.4.120.0110.00922.48
8.4.110.0030.00719.19
8.4.100.0060.00318.04
8.4.90.0170.00420.49
8.4.80.0030.00518.92
8.4.70.0150.00718.92
8.4.60.0100.00819.04
8.4.50.0130.00918.03
8.4.40.0030.02018.00
8.4.30.0100.01020.49
8.4.20.0030.00619.95
8.4.10.0000.00819.61
8.3.280.0120.00818.68
8.3.270.0130.00616.59
8.3.260.0110.00816.54
8.3.250.0130.00616.91
8.3.240.0090.01116.81
8.3.230.0120.00816.73
8.3.220.0120.00618.54
8.3.210.0080.01016.52
8.3.200.0040.00516.35
8.3.190.0100.00916.75
8.3.180.0050.00418.28
8.3.170.0060.01316.65
8.3.160.0000.01616.98
8.3.150.0140.00418.79
8.3.140.0000.00816.52
8.3.130.0060.00316.63
8.3.120.0030.00618.72
8.3.110.0040.00420.94
8.3.100.0090.00016.66
8.3.90.0140.00026.77
8.3.80.0070.00418.30
8.3.70.0150.00716.75
8.3.60.0060.00916.75
8.3.50.0140.00718.17
8.3.40.0040.01220.72
8.3.30.0090.00618.79
8.3.20.0040.00424.18
8.3.10.0000.00824.66
8.3.00.0080.00026.16
8.2.290.0110.00817.14
8.2.280.0110.00818.61
8.2.270.0070.01117.14
8.2.260.0060.00316.70
8.2.250.0000.01616.68
8.2.240.0030.00616.95
8.2.230.0090.00022.58
8.2.220.0030.00624.06
8.2.210.0080.01226.77
8.2.200.0060.00316.63
8.2.190.0100.01016.58
8.2.180.0130.00925.92
8.2.170.0190.00018.91
8.2.160.0070.00722.96
8.2.150.0050.00325.66
8.2.140.0040.00424.66
8.2.130.0000.00826.16
8.2.120.0040.00426.16
8.2.110.0150.00421.02
8.2.100.0130.00018.03
8.2.90.0000.00820.55
8.2.80.0040.00420.36
8.2.70.0080.00017.75
8.2.60.0090.00317.75
8.2.50.0040.00417.75
8.2.40.0080.00019.48
8.2.30.0050.00217.85
8.2.20.0030.00518.13
8.2.10.0040.00419.19
8.2.00.0000.00719.13
8.1.330.0080.00316.33
8.1.320.0010.00818.23
8.1.310.0060.00918.57
8.1.300.0030.00818.51
8.1.290.0060.00330.84
8.1.280.0080.00625.92
8.1.270.0030.00621.96
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0060.00322.07
8.1.230.0120.00020.97
8.1.220.0070.00317.74
8.1.210.0000.00818.85
8.1.200.0050.00317.35
8.1.190.0050.00317.22
8.1.180.0080.00018.10
8.1.170.0060.00317.62
8.1.160.0040.00418.77
8.1.150.0050.00318.75
8.1.140.0070.00018.91
8.1.130.0000.00818.84
8.1.120.0000.00717.54
8.1.110.0000.00717.52
8.1.100.0030.00517.57
8.1.90.0000.00717.54
8.1.80.0040.00417.54
8.1.70.0070.00017.53
8.1.60.0030.00517.65
8.1.50.0000.00817.62
8.1.40.0000.00817.64
8.1.30.0000.00817.76
8.1.20.0040.00417.79
8.1.10.0090.00317.61
8.1.00.0060.00317.52
8.0.300.0040.00420.13
8.0.290.0040.00416.75
8.0.280.0030.00318.10
8.0.270.0030.00618.64
8.0.260.0000.00618.53
8.0.250.0040.00417.05
8.0.240.0040.00417.05
8.0.230.0000.00717.03
8.0.220.0000.00716.97
8.0.210.0040.00416.87
8.0.200.0070.00016.92
8.0.190.0040.00417.00
8.0.180.0070.00016.95
8.0.170.0040.00416.93
8.0.160.0030.00816.96
8.0.150.0030.00316.96
8.0.140.0040.00416.98
8.0.130.0000.00513.43
8.0.120.0030.00617.00
8.0.110.0040.00416.93
8.0.100.0040.00416.87
8.0.90.0000.00816.94
8.0.80.0000.00716.99
8.0.70.0030.00516.92
8.0.60.0050.00317.07
8.0.50.0070.00016.83
8.0.30.0050.00316.95
8.0.20.0040.00416.99
8.0.10.0050.00316.93
8.0.00.0080.00017.00
7.4.330.0020.00215.55
7.4.320.0060.00016.65
7.4.300.0000.00616.76
7.4.290.0040.00416.52
7.4.280.0050.00216.63
7.4.270.0070.00016.62
7.4.260.0050.00013.44
7.4.250.0000.00816.78
7.4.240.0050.00316.64
7.4.230.0000.00716.49
7.4.220.0040.00416.70
7.4.210.0070.00016.82
7.4.200.0070.00016.75
7.4.190.0000.00716.72
7.4.180.0000.00816.93
7.4.160.0050.00216.49
7.4.150.0030.00316.90
7.4.140.0000.00816.43
7.4.130.0040.00416.46
7.4.120.0000.00716.71
7.4.110.0000.00716.56
7.4.100.0040.00416.59
7.4.90.0040.00416.68
7.4.80.0070.00016.72
7.4.70.0070.00016.57
7.4.60.0050.00516.74
7.4.50.0050.00516.53
7.4.40.0000.00816.61
7.4.30.0060.00216.50
7.4.20.0080.00016.62
7.4.10.0080.00016.65
7.4.00.0000.00916.41
7.3.330.0060.00316.23
7.3.320.0030.00313.25
7.3.310.0070.00016.46
7.3.300.0000.00716.38
7.3.290.0050.00216.35
7.3.280.0030.00516.35
7.3.270.0040.00416.23
7.3.260.0060.00316.20
7.3.250.0000.00816.39
7.3.240.0050.00316.27
7.3.230.0030.00516.43
7.3.220.0060.00316.08
7.3.210.0000.00816.30
7.3.200.0000.00916.26
7.3.190.0090.00016.26
7.3.180.0000.00916.29
7.3.170.0080.00016.25
7.3.160.0040.00416.19
7.3.150.0020.00516.30
7.3.140.0000.00816.28
7.3.130.0080.00016.34
7.3.120.0090.00016.25
7.3.110.0000.00716.07
7.3.100.0070.00016.19
7.3.90.0000.00716.46
7.3.80.0000.00816.32
7.3.70.0030.00316.43
7.3.60.0020.00516.43
7.3.50.0080.00016.36
7.3.40.0030.00316.51
7.3.30.0030.00316.31
7.3.20.0000.00816.38
7.3.10.0140.00016.45
7.3.00.0030.00316.43

preferences:
168.43 ms | 403 KiB | 5 Q