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](\d+)/'; foreach ($strings as $string) { preg_match_all($pattern, $string, $matches); print_r($matches[1]); }

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.0160.01017.90
8.4.130.0060.00417.92
8.4.120.0080.00222.72
8.4.110.0130.00718.88
8.4.100.0150.00717.95
8.4.90.0130.00820.30
8.4.80.0100.00520.93
8.4.70.0110.00122.54
8.4.60.0100.00620.65
8.4.50.0110.00918.61
8.4.40.0060.01317.57
8.4.30.0160.00318.55
8.4.20.0060.01618.11
8.4.10.0060.00319.85
8.3.270.0110.00916.58
8.3.260.0100.01016.48
8.3.250.0070.00718.76
8.3.240.0130.00716.96
8.3.230.0050.00416.71
8.3.220.0120.00718.91
8.3.210.0030.00616.97
8.3.200.0050.00316.70
8.3.190.0040.00518.80
8.3.180.0130.00518.90
8.3.170.0090.00916.93
8.3.160.0150.00316.55
8.3.150.0150.00316.93
8.3.140.0080.00016.51
8.3.130.0130.00716.71
8.3.120.0030.00618.86
8.3.110.0030.00620.94
8.3.100.0100.01024.06
8.3.90.0090.00626.77
8.3.80.0000.01016.63
8.3.70.0090.00618.43
8.3.60.0120.00318.55
8.3.50.0070.01024.51
8.3.40.0040.01118.79
8.3.30.0100.01018.92
8.3.20.0030.00524.18
8.3.10.0060.00324.66
8.3.00.0040.00426.16
8.2.290.0090.01017.17
8.2.280.0120.00820.37
8.2.270.0160.00316.75
8.2.260.0080.00017.45
8.2.250.0060.00916.75
8.2.240.0050.00318.96
8.2.230.0080.00822.58
8.2.220.0040.00437.54
8.2.210.0030.01226.77
8.2.200.0030.00617.00
8.2.190.0120.00616.88
8.2.180.0110.00425.92
8.2.170.0110.00419.05
8.2.160.0120.00622.96
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00419.56
8.2.110.0030.00722.20
8.2.100.0030.00919.46
8.2.90.0100.00019.82
8.2.80.0040.00418.02
8.2.70.0000.00817.80
8.2.60.0070.00018.22
8.2.50.0000.00918.34
8.2.40.0000.00718.09
8.2.30.0040.00418.20
8.2.20.0000.00718.07
8.2.10.0080.00019.19
8.2.00.0040.00419.25
8.1.330.0110.01216.29
8.1.320.0130.00617.89
8.1.310.0100.00718.44
8.1.300.0030.00616.56
8.1.290.0090.00018.88
8.1.280.0100.01025.92
8.1.270.0060.00323.99
8.1.260.0060.00326.35
8.1.250.0080.00028.09
8.1.240.0030.00722.61
8.1.230.0070.00419.16
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0000.01017.25
8.1.190.0050.00517.47
8.1.180.0030.00518.10
8.1.170.0050.00318.71
8.1.160.0000.00718.78
8.1.150.0000.00718.89
8.1.140.0040.00418.78
8.1.130.0030.00320.19
8.1.120.0040.00417.51
8.1.110.0000.00817.60
8.1.100.0000.00817.61
8.1.90.0030.00617.61
8.1.80.0030.00617.66
8.1.70.0000.00817.59
8.1.60.0080.00017.63
8.1.50.0040.00417.66
8.1.40.0040.00417.58
8.1.30.0000.00817.78
8.1.20.0030.00517.77
8.1.10.0050.00317.75
8.1.00.0000.00817.54
8.0.300.0060.00320.16
8.0.290.0050.00316.63
8.0.280.0060.00318.46
8.0.270.0070.00018.15
8.0.260.0000.00618.52
8.0.250.0030.00317.09
8.0.240.0040.00417.09
8.0.230.0040.00417.03
8.0.220.0000.00717.02
8.0.210.0070.00016.94
8.0.200.0040.00417.08
8.0.190.0030.00616.96
8.0.180.0000.00717.06
8.0.170.0000.00816.99
8.0.160.0000.00716.92
8.0.150.0030.00616.89
8.0.140.0030.00617.00
8.0.130.0000.00813.45
8.0.120.0040.00416.99
8.0.110.0070.00017.09
8.0.100.0030.00517.06
8.0.90.0000.00717.00
8.0.80.0070.00717.04
8.0.70.0000.00716.86
8.0.60.0000.00816.92
8.0.50.0040.00416.82
8.0.30.0040.01417.49
8.0.20.0130.01217.28
8.0.10.0030.00517.14
8.0.00.0130.01316.84
7.4.330.0050.00015.55
7.4.320.0000.00616.72
7.4.300.0000.00616.69
7.4.290.0000.00716.59
7.4.280.0000.00716.79
7.4.270.0000.00716.77
7.4.260.0000.00513.50
7.4.250.0000.00716.64
7.4.240.0070.00016.82
7.4.230.0070.00016.54
7.4.220.0020.00516.69
7.4.210.0110.00716.76
7.4.200.0030.00616.81
7.4.130.0090.01316.62
7.4.120.0080.00816.68
7.4.110.0130.00716.86
7.4.100.0070.01016.74
7.4.90.0110.01116.74
7.4.80.0080.00819.39
7.4.70.0070.01116.65
7.4.60.0190.00016.76
7.4.50.0090.00916.61
7.4.40.0120.00916.77
7.4.30.0070.01016.48
7.4.20.0130.00716.65
7.4.10.0140.00316.44
7.4.00.0060.01616.61
7.3.330.0000.00716.57
7.3.320.0030.00313.37
7.3.310.0000.00716.48
7.3.300.0040.00416.52
7.3.290.0060.00916.39
7.3.280.0030.01016.32
7.3.260.0110.00816.52
7.3.230.0080.00816.57
7.3.210.0090.00916.82
7.3.200.0130.00316.58
7.3.190.0050.01316.49
7.3.180.0070.01116.64
7.3.170.0060.01616.80
7.3.160.0000.01516.51
7.3.150.0060.00916.53
7.3.140.0080.00816.44
7.3.130.0130.00616.63
7.3.120.0100.00616.57
7.3.110.0070.01316.71
7.3.100.0090.00616.67
7.3.90.0120.00616.40
7.3.80.0090.01216.78
7.3.70.0160.00616.43
7.3.60.0070.01016.58
7.3.50.0120.00816.41
7.3.40.0100.00716.48
7.3.30.0080.00816.59
7.3.20.0070.01416.61
7.3.10.0100.00716.52
7.3.00.0000.02016.52
7.2.330.0110.00716.76
7.2.320.0180.00016.70
7.2.310.0120.00616.72
7.2.300.0120.00816.64
7.2.290.0280.00616.80
7.2.280.0070.01016.91
7.2.270.0080.01316.84
7.2.260.0030.01416.80
7.2.250.0090.00916.80
7.2.240.0030.01316.89
7.2.230.0070.01016.76
7.2.220.0120.00416.65
7.2.210.0100.01316.77
7.2.200.0070.01016.86
7.2.190.0030.01616.80
7.2.180.0070.01016.89
7.2.170.0080.01616.80
7.2.160.0110.00716.94
7.2.150.0240.01416.80
7.2.140.0100.01016.84
7.2.130.0130.00616.83
7.2.120.0070.01016.83
7.2.110.0110.00616.88
7.2.100.0030.01516.91
7.2.90.0090.00916.66
7.2.80.0100.01016.63
7.2.70.0030.01916.97
7.2.60.0110.01116.84
7.2.50.0130.00616.90
7.2.40.0090.00917.00
7.2.30.0000.01816.83
7.2.20.0100.00716.95
7.2.10.0120.00616.70
7.2.00.0050.01416.65

preferences:
32.2 ms | 403 KiB | 5 Q