3v4l.org

run code in 300+ PHP versions simultaneously
<?php $strings = [ '5,422 Comments, other text here and stuff', '2 Comments, not great!', '4/4/2009 21 Comments', 'This one is a whopper: 1,234,567,890 Comments' ]; foreach ($strings as $string) { echo preg_match('~\d{1,3}(?:,\d{3})*(?= Comments)~', $string, $m) ? $m[0] : 'no match'; echo "\n"; }

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.80.0070.00416.63
8.3.70.0110.00716.88
8.3.60.0160.00718.43
8.3.50.0110.00823.65
8.3.40.0040.01218.90
8.3.30.0120.00318.97
8.3.20.0000.00720.76
8.3.10.0040.00422.12
8.3.00.0040.00421.76
8.2.200.0050.00516.63
8.2.190.0210.00016.88
8.2.180.0030.01717.00
8.2.170.0070.00722.96
8.2.160.0100.00322.21
8.2.150.0060.00324.18
8.2.140.0030.00624.66
8.2.130.0070.00026.16
8.2.120.0000.00821.14
8.2.110.0060.00320.53
8.2.100.0040.00817.88
8.2.90.0030.00619.17
8.2.80.0040.00717.97
8.2.70.0000.00817.88
8.2.60.0030.00518.05
8.2.50.0040.00418.07
8.2.40.0060.00318.22
8.2.30.0000.00818.05
8.2.20.0020.00518.08
8.2.10.0000.00819.22
8.2.00.0020.00519.30
8.1.290.0000.00918.88
8.1.280.0090.00625.92
8.1.270.0080.00022.65
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0060.00323.96
8.1.230.0100.00318.93
8.1.220.0040.00417.74
8.1.210.0030.00518.77
8.1.200.0060.00317.35
8.1.190.0050.00317.38
8.1.180.0090.00018.10
8.1.170.0040.00418.77
8.1.160.0000.00719.04
8.1.150.0020.00519.11
8.1.140.0030.00620.87
8.1.130.0040.00417.61
8.1.120.0030.00317.65
8.1.110.0000.00817.64
8.1.100.0040.00417.52
8.1.90.0000.00817.50
8.1.80.0040.00417.65
8.1.70.0030.00317.55
8.1.60.0030.00517.76
8.1.50.0090.00017.59
8.1.40.0040.00417.64
8.1.30.0000.00917.85
8.1.20.0090.00317.77
8.1.10.0080.00017.60
8.1.00.0040.00417.69
8.0.300.0040.00418.77
8.0.290.0070.00017.00
8.0.280.0000.00818.47
8.0.270.0040.00418.08
8.0.260.0030.00317.05
8.0.250.0030.00317.02
8.0.240.0040.00417.16
8.0.230.0030.00617.05
8.0.220.0040.00417.09
8.0.210.0070.00017.07
8.0.200.0040.00417.13
8.0.190.0040.00417.11
8.0.180.0000.00717.01
8.0.170.0040.00417.09
8.0.160.0070.00016.95
8.0.150.0040.00316.96
8.0.140.0040.00417.08
8.0.130.0030.00313.57
8.0.120.0050.00517.02
8.0.110.0000.00716.94
8.0.100.0000.00716.86
8.0.90.0000.00916.88
8.0.80.0050.01116.95
8.0.70.0000.00817.09
8.0.60.0020.00516.95
8.0.50.0040.00417.04
8.0.30.0060.01216.98
8.0.20.0140.00717.39
8.0.10.0040.00417.22
8.0.00.0030.01517.09
7.4.330.0020.00216.67
7.4.320.0000.00616.77
7.4.300.0030.00316.68
7.4.290.0000.00716.82
7.4.280.0050.00316.86
7.4.270.0000.00816.63
7.4.260.0000.00513.63
7.4.250.0000.00716.84
7.4.240.0040.00416.75
7.4.230.0030.00316.63
7.4.220.0020.00516.76
7.4.210.0090.00716.79
7.4.200.0070.00016.64
7.4.140.0070.01017.86
7.4.130.0060.01516.64
7.4.120.0130.01016.69
7.4.110.0070.01116.68
7.4.100.0100.00716.86
7.4.90.0070.01416.78
7.4.80.0070.01119.39
7.4.70.0060.01616.73
7.4.60.0130.00316.72
7.4.50.0070.01016.61
7.4.40.0050.01116.63
7.4.10.0080.01115.26
7.4.00.0100.00614.89
7.3.330.0000.00716.31
7.3.320.0030.00313.32
7.3.310.0000.00716.52
7.3.300.0000.00716.52
7.3.290.0110.00916.52
7.3.280.0050.01016.38
7.3.260.0130.01016.84
7.3.240.0110.00716.54
7.3.230.0130.02016.64
7.3.210.0110.01116.69
7.3.200.0130.01016.63
7.3.190.0070.01016.48
7.3.180.0030.01316.73
7.3.170.0090.01216.63
7.3.160.0120.00416.52
7.3.130.0040.01415.16
7.3.120.0130.00015.14
7.3.110.0040.01514.87
7.3.100.0110.00315.14
7.3.90.0040.01115.17
7.3.80.0130.00315.08
7.3.70.0060.01314.85
7.3.60.0080.00814.80
7.3.50.0070.00814.89
7.3.40.0060.00615.11
7.3.30.0040.01414.84
7.3.20.0060.00614.92
7.3.10.0190.00015.04
7.3.00.0090.00914.86
7.2.330.0110.00716.78
7.2.320.0140.00316.92
7.2.310.0140.00816.83
7.2.300.0090.00916.71
7.2.290.0070.01316.88
7.2.260.0030.01515.11
7.2.250.0160.00315.27
7.2.240.0080.00714.91
7.2.230.0090.00915.00
7.2.220.0110.00815.08
7.2.210.0030.01414.98
7.2.200.0080.00915.09
7.2.190.0070.01115.00
7.2.180.0060.00615.13
7.2.170.0050.00815.09
7.2.160.0100.00315.19
7.2.150.0030.01015.16
7.2.140.0080.00615.41
7.2.130.0080.00515.25
7.2.120.0070.00715.25
7.2.110.0060.00815.30
7.2.100.0030.01015.13
7.2.90.0070.01015.34
7.2.80.0030.01115.09
7.2.70.0090.00915.17
7.2.60.0170.01415.16
7.2.50.0090.00915.36
7.2.40.0100.01015.13
7.2.30.0090.00615.02
7.2.20.0100.00714.93
7.2.10.0120.00615.11
7.2.00.0070.01315.41

preferences:
28.06 ms | 401 KiB | 5 Q