3v4l.org

run code in 300+ PHP versions simultaneously
<?php $strings = [ "A12B8Y9CC10", "V5C8I17", "KK18II9", "I8VV22ZZ4S9U2", "A18Z12I" ]; $pattern = '/[A-Z]{2,}\d+(*SKIP)(*FAIL)|[A-Z]\K\d+/'; foreach ($strings as $string) { preg_match_all($pattern, $string, $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.4.140.0120.00917.92
8.4.130.0070.00218.94
8.4.120.0130.00723.99
8.4.110.0130.00820.75
8.4.100.0100.01019.04
8.4.90.0090.01120.59
8.4.80.0060.00318.90
8.4.70.0050.00318.07
8.4.60.0050.00618.88
8.4.50.0120.00718.84
8.4.40.0120.00617.87
8.4.30.0070.01318.52
8.4.20.0140.00717.99
8.4.10.0040.00419.63
8.3.270.0210.00516.35
8.3.260.0040.00516.76
8.3.250.0140.00519.15
8.3.240.0040.00417.15
8.3.230.0050.00416.54
8.3.220.0080.01119.05
8.3.210.0100.00418.55
8.3.200.0100.00916.75
8.3.190.0100.00917.24
8.3.180.0070.00319.10
8.3.170.0110.00718.85
8.3.160.0110.00720.23
8.3.150.0090.00916.81
8.3.140.0080.00016.88
8.3.130.0040.00416.63
8.3.120.0090.00018.85
8.3.110.0030.00520.94
8.3.100.0040.00424.06
8.3.90.0080.00026.77
8.3.80.0060.00316.63
8.3.70.0100.00618.31
8.3.60.0100.01018.22
8.3.50.0150.00324.52
8.3.40.0110.00418.69
8.3.30.0110.00418.84
8.3.20.0050.00324.18
8.3.10.0050.00324.66
8.3.00.0070.00726.16
8.2.290.0070.00220.81
8.2.280.0060.00518.55
8.2.270.0070.00319.23
8.2.260.0080.00316.48
8.2.250.0000.00816.87
8.2.240.0080.00016.69
8.2.230.0030.00622.58
8.2.220.0040.00437.54
8.2.210.0100.00326.77
8.2.200.0050.00516.63
8.2.190.0070.01016.75
8.2.180.0040.01125.92
8.2.170.0120.00619.17
8.2.160.0120.00622.96
8.2.150.0060.00325.66
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0080.00026.35
8.2.110.0060.00322.20
8.2.100.0080.00318.03
8.2.90.0080.00018.09
8.2.80.0050.00317.97
8.2.70.0060.00317.88
8.2.60.0080.00017.93
8.2.50.0090.00618.07
8.2.40.0040.00418.22
8.2.30.0060.00318.13
8.2.20.0040.00418.16
8.2.10.0050.00319.38
8.2.00.0070.00019.32
8.1.330.0110.00921.98
8.1.320.0100.00917.87
8.1.310.0110.00418.56
8.1.300.0060.00318.51
8.1.290.0030.00630.84
8.1.280.0170.00325.92
8.1.270.0080.00023.99
8.1.260.0040.00428.09
8.1.250.0070.00028.09
8.1.240.0110.00722.66
8.1.230.0100.00021.03
8.1.220.0000.00817.76
8.1.210.0050.00318.83
8.1.200.0060.00317.35
8.1.190.0030.00617.35
8.1.180.0030.00618.10
8.1.170.0050.00318.68
8.1.160.0060.00318.78
8.1.150.0030.00618.84
8.1.140.0040.00418.97
8.1.130.0030.00320.26
8.1.120.0030.00317.64
8.1.110.0040.00417.58
8.1.100.0000.00817.59
8.1.90.0000.00717.54
8.1.80.0000.00817.48
8.1.70.0000.00717.64
8.1.60.0090.00017.78
8.1.50.0040.00417.69
8.1.40.0000.00817.71
8.1.30.0080.00017.89
8.1.20.0000.00817.69
8.1.10.0040.00417.61
8.1.00.0040.00417.51
8.0.300.0050.00319.89
8.0.290.0070.00016.88
8.0.280.0030.00318.44
8.0.270.0040.00418.14
8.0.260.0030.00518.42
8.0.250.0080.00016.99
8.0.240.0040.00416.96
8.0.230.0040.00417.00
8.0.220.0040.00417.00
8.0.210.0030.00316.92
8.0.200.0000.00717.04
8.0.190.0000.00816.96
8.0.180.0040.00417.07
8.0.170.0030.00517.04
8.0.160.0070.00017.07
8.0.150.0000.00716.86
8.0.140.0090.00316.86
8.0.130.0040.00413.45
8.0.120.0040.00417.08
8.0.110.0040.00416.89
8.0.100.0040.00416.98
8.0.90.0000.00717.14
8.0.80.0100.00517.03
8.0.70.0000.00816.98
8.0.60.0000.00717.02
8.0.50.0000.00817.06
8.0.30.0150.00917.41
8.0.20.0150.01017.09
8.0.10.0040.00417.21
8.0.00.0260.02616.97
7.4.330.0020.00215.55
7.4.320.0060.00016.85
7.4.300.0060.00016.63
7.4.290.0000.00716.63
7.4.280.0050.00216.78
7.4.270.0030.00316.71
7.4.260.0000.00513.43
7.4.250.0070.00016.57
7.4.240.0000.00816.72
7.4.230.0020.00516.46
7.4.220.0030.00316.87
7.4.210.0070.00916.74
7.4.200.0040.00316.64
7.4.130.0100.01016.69
7.4.120.0120.00816.71
7.4.110.0130.01316.67
7.4.100.0050.01516.75
7.4.90.0130.00616.79
7.4.80.0100.00619.39
7.4.70.0040.01616.82
7.4.60.0080.00816.62
7.4.50.0090.00916.71
7.4.40.0120.00416.79
7.4.30.0090.00916.75
7.4.20.0080.00816.29
7.4.10.0150.00416.43
7.4.00.0200.00316.60
7.3.330.0000.00716.57
7.3.320.0060.00013.36
7.3.310.0000.00716.29
7.3.300.0030.00316.46
7.3.290.0050.00816.41
7.3.280.0030.01316.44
7.3.260.0040.01416.37
7.3.230.0130.00416.81
7.3.210.0140.00416.59
7.3.200.0120.00416.71
7.3.190.0060.01316.45
7.3.180.0150.00616.61
7.3.170.0150.00416.86
7.3.160.0170.00016.56
7.3.150.0120.00616.58
7.3.140.0070.01116.63
7.3.130.0170.00316.49
7.3.120.0150.00916.57
7.3.110.0070.01016.41
7.3.100.0140.00616.50
7.3.90.0070.01016.46
7.3.80.0120.00616.49
7.3.70.0090.01216.50
7.3.60.0070.01516.44
7.3.50.0170.00616.60
7.3.40.0120.00616.55
7.3.30.0130.01016.68
7.3.20.0150.01016.53
7.3.10.0130.00316.45
7.3.00.0000.01716.51
7.2.330.0070.01416.83
7.2.320.0100.00716.89
7.2.310.0080.00816.75
7.2.300.0090.00916.84
7.2.290.0060.01216.78
7.2.280.0140.00416.71
7.2.270.0070.01116.70
7.2.260.0150.00816.88
7.2.250.0180.00316.87
7.2.240.0100.00616.63
7.2.230.0070.01016.81
7.2.220.0060.01216.82
7.2.210.0120.01216.80
7.2.200.0120.00616.75
7.2.190.0160.00616.92
7.2.180.0080.01116.80
7.2.170.0210.00616.72
7.2.160.0100.00716.79
7.2.150.0070.01116.86
7.2.140.0070.01416.66
7.2.130.0140.00416.83
7.2.120.0160.00316.89
7.2.110.0160.00416.86
7.2.100.0090.01516.82
7.2.90.0090.00916.94
7.2.80.0150.00416.82
7.2.70.0090.01016.92
7.2.60.0100.01016.93
7.2.50.0060.01216.90
7.2.40.0100.01016.71
7.2.30.0140.00616.78
7.2.20.0070.01017.03
7.2.10.0090.01216.74
7.2.00.0100.01116.88

preferences:
30.91 ms | 403 KiB | 5 Q