3v4l.org

run code in 300+ PHP versions simultaneously
<?php $regex = '/(?:\h*C\h+|\G(?!^))\h*,*\h*\K\d+/i'; $strings = [ "C 1,13,7,2,55", "c 1 , 12,15 , 8 , 9,10,11", "1,2 , 4,5", "d 12456, 9890" ]; foreach ($strings as $s) { if (preg_match_all($regex, $s, $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.20.0100.00820.25
8.5.10.0100.00818.61
8.5.00.0150.00720.34
8.4.170.0140.00720.75
8.4.160.0110.01123.24
8.4.150.0020.00114.05
8.4.140.0250.00817.91
8.4.130.0120.00818.96
8.4.120.0130.00824.32
8.4.110.0070.01319.00
8.4.100.0140.00718.59
8.4.90.0120.00720.59
8.4.80.0060.00418.87
8.4.70.0050.01118.80
8.4.60.0120.00918.88
8.4.50.0120.00918.73
8.4.40.0120.00917.78
8.4.30.0080.01220.58
8.4.20.0100.01018.10
8.4.10.0160.00317.96
8.3.300.0050.00520.86
8.3.290.0110.00920.96
8.3.280.0090.01118.55
8.3.270.0100.00916.58
8.3.260.0060.00416.66
8.3.250.0120.00818.80
8.3.240.0100.00616.92
8.3.230.0050.00516.61
8.3.220.0140.00518.93
8.3.210.0040.00318.69
8.3.200.0060.00316.93
8.3.190.0100.00717.37
8.3.180.0040.00418.75
8.3.170.0040.00417.21
8.3.160.0040.01416.64
8.3.150.0160.00320.82
8.3.140.0110.00417.48
8.3.130.0040.00418.73
8.3.120.0040.01218.93
8.3.110.0070.00420.94
8.3.100.0060.00324.06
8.3.90.0140.00726.77
8.3.80.0060.00316.75
8.3.70.0100.00716.75
8.3.60.0090.00916.63
8.3.50.0090.00918.48
8.3.40.0040.01118.84
8.3.30.0100.01018.84
8.3.20.0000.00724.18
8.3.10.0050.00224.66
8.3.00.0040.00426.16
8.2.300.0100.01218.41
8.2.290.0030.00622.45
8.2.280.0120.00918.59
8.2.270.0090.00917.27
8.2.260.0090.00616.67
8.2.250.0030.00616.79
8.2.240.0090.00017.18
8.2.230.0040.00422.58
8.2.220.0120.00937.54
8.2.210.0040.00426.77
8.2.200.0060.00318.39
8.2.190.0150.00416.75
8.2.180.0250.00425.92
8.2.170.0140.00019.13
8.2.160.0070.00722.96
8.2.150.0080.00025.66
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0070.00021.12
8.2.110.0000.01022.17
8.2.100.0040.00817.97
8.2.90.0000.00817.75
8.2.80.0040.00418.00
8.2.70.0040.00418.05
8.2.60.0080.00018.16
8.2.50.0000.00818.10
8.2.40.0030.00620.19
8.2.30.0000.00718.15
8.2.20.0070.00020.48
8.2.10.0000.00717.72
8.2.00.0040.00419.16
8.1.340.0100.01117.73
8.1.330.0130.00721.82
8.1.320.0060.00822.28
8.1.310.0120.00616.67
8.1.300.0030.01618.48
8.1.290.0030.00718.88
8.1.280.0120.00325.92
8.1.270.0040.00423.99
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0000.01022.57
8.1.230.0040.00717.76
8.1.220.0070.00317.79
8.1.210.0000.00818.77
8.1.200.0040.00417.50
8.1.190.0000.00817.35
8.1.180.0030.00618.10
8.1.170.0060.00318.70
8.1.160.0080.00018.94
8.1.150.0040.00418.71
8.1.140.0060.00317.49
8.1.130.0000.00718.85
8.1.120.0050.00317.68
8.1.110.0000.00817.55
8.1.100.0060.00317.62
8.1.90.0040.00417.67
8.1.80.0000.00917.62
8.1.70.0000.00717.61
8.1.60.0000.00917.70
8.1.50.0020.00517.52
8.1.40.0060.00317.57
8.1.30.0080.00017.71
8.1.20.0170.00717.61
8.1.10.0190.00417.72
8.1.00.0190.00017.63
8.0.300.0030.00518.77
8.0.290.0080.00016.88
8.0.280.0040.00418.39
8.0.270.0040.00418.06
8.0.260.0030.00318.48
8.0.250.0080.00017.02
8.0.240.0030.00517.14
8.0.230.0050.00317.10
8.0.220.0030.00316.96
8.0.210.0070.00017.02
8.0.200.0040.00416.98
8.0.190.0050.00217.01
8.0.180.0070.00317.04
8.0.170.0080.00017.09
8.0.160.0000.00817.02
8.0.150.0110.00416.91
8.0.140.0160.00316.82
8.0.130.0190.00016.89
8.0.120.0160.00416.90
8.0.110.0160.00217.11
8.0.100.0130.00717.07
8.0.90.0190.00016.90
8.0.80.0200.00216.98
8.0.70.0200.00416.89
8.0.60.0240.00016.97
8.0.50.0200.00016.91
8.0.30.0170.00317.07
8.0.20.0210.00016.97
8.0.10.0200.00017.02
7.4.330.0030.00315.55
7.4.320.0000.00716.83
7.4.300.0110.00016.70
7.4.290.0030.00316.68
7.4.280.0000.00716.76
7.4.270.0070.00716.78
7.4.260.0200.00316.79
7.4.250.0170.00316.76
7.4.240.0120.00916.77
7.4.230.0150.00916.54
7.4.220.0200.00016.75
7.4.210.0140.00716.69
7.4.200.0140.00716.68
7.4.190.0170.00016.72
7.4.180.0110.00816.72
7.4.160.0150.00416.89
7.4.150.0130.00716.62
7.4.140.0120.00616.74
7.4.130.0150.00516.71
7.4.120.0110.00716.82
7.4.110.0130.00316.59
7.4.100.0130.00616.76
7.4.90.0140.00416.77
7.4.80.0150.00316.65
7.4.70.0130.00316.71
7.4.60.0070.01016.67
7.4.50.0100.01016.56
7.4.40.0170.00416.59
7.4.30.0130.00716.69
7.4.20.0110.01116.48
7.4.10.0160.00316.45
7.4.00.0160.00316.52

preferences:
36.25 ms | 403 KiB | 5 Q