3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = ' <div class="brand small-4 columns"> [http://static.theiconic.com.au/cms/site_updates/Week 42/MSS_1_150x245px.jpg, (default)], [http://static.theiconic.com.au/cms/site_updates/Week 42/MSS_1_150x245px.jpg, (medium)], [http://static.theiconic.com.au/cms/site_updates/Week 42/MSS_1_150x245px.jpg, (large)], [http://static.theiconic.com.au/cms/site_updates/Week 42/MSS_1_150x245px.jpg, (xlarge)]" http://www.theiconic.com.au <a href="/Pearl-151398.html" class="ga-track-link-click" data-ga-category="Women Gender Page" data-ga-action="Editors 9 Picks" data-ga-label="SpurrBasics" onClick="_gaq.push" rel="teaser.index.Essentials.75x60.Editors9Picks.SpurrBasics"> <img data-interchange="[http://img1.theiconic.com.au/m4vHwoKT2A1yyg1jDWVpBWpp8uc=/trim/fit-in/490x627/filters:quality(95):fill(ffffff)/http%3A%2F%2Fstatic.theiconic.com.au%2Fp%2Fspurr-basics-3847-893151-1.jpg, (default)]"> <span class="essential-item"> Spurr Basics<br/> $29.95 </span> </a> </div> <div class="brand small-4 columns"> <a href="/Stolen-Hearts-Dress-157650.html" class="ga-track-link-click" data-ga-category="Women Gender Page" data-ga-action="Editors 9 Picks" data-ga-label="KeepsakeTheLabel" onClick="_gaq" rel="teaser.index.Essentials.75x60.Editors9Picks.KeepsakeTheLabel"> <img data-interchange="[http://img1.theiconic.com.au/cSIL4OOfsfSWcOLqsdHfXie83UU=/trim/fit-in/490x627/filters:quality(95):fill(ffffff)/http%3A%2F%2Fstatic.theiconic.com.au%2Fp%2Fkeepsake-the-label-1642-056751-1.jpg, (default)]"> <span class="essential-item"> Keepsake the Label<br/>a $189.95 </span> </a> </div> <div class="brand small-4 columns"> <a href="/Frill-Knit-Cami-170206.html" class="ga-track-link-click" data-ga-category="Women Gender Page" data-ga-action="Editors 9 Picks" data-ga-label="Bardot" onClick="_gaq.push rel="teaser.index.Essentials.75x60.Editors9Picks.Bardot"> <img data-interchange="[http://img1.theiconic.com.au/D8k6ZV8RDzBoXTCRBc2m5wpX2_8=/trim/fit-in/490x627/filters:quality(95):fill(ffffff)/http%3A%2F%2Fstatic.theiconic.com.au%2Fp%2Fbardot-4474-602071-1.jpg, (default)]"> <span class="essential-item"> Bardot<br/> $39.99 </span> </a> </div> </div> </div>'; preg_match_all('#\bhttps?://[^,\s()<>]+(?:\([\w\d]+\)|([^,[:punct:]\s]|/))#', $string, $match); echo "<pre>"; print_r($match[0]); echo "</pre>";

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.60.0120.00616.50
8.3.50.0140.00716.54
8.3.40.0060.01019.01
8.3.30.0110.00418.78
8.3.20.0040.00420.13
8.3.10.0040.00423.70
8.3.00.0000.00822.12
8.2.180.0090.00618.34
8.2.170.0110.00722.96
8.2.160.0070.01119.25
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00421.00
8.2.120.0050.00326.35
8.2.110.0030.00622.30
8.2.100.0120.00018.03
8.2.90.0000.00819.32
8.2.80.0030.00618.05
8.2.70.0000.00917.75
8.2.60.0040.00417.93
8.2.50.0040.00418.16
8.2.40.0040.00420.35
8.2.30.0060.00321.13
8.2.20.0050.00217.97
8.2.10.0040.00418.04
8.2.00.0040.00417.94
8.1.280.0100.00325.92
8.1.270.0110.00722.20
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0050.00521.00
8.1.230.0070.00419.17
8.1.220.0060.00317.74
8.1.210.0060.00318.77
8.1.200.0060.00317.38
8.1.190.0000.00817.35
8.1.180.0050.00318.10
8.1.170.0050.00318.68
8.1.160.0020.00519.04
8.1.150.0070.00020.64
8.1.140.0040.00419.50
8.1.130.0030.00318.74
8.1.120.0000.00817.55
8.1.110.0050.00317.49
8.1.100.0000.00817.62
8.1.90.0070.00217.54
8.1.80.0000.00717.43
8.1.70.0030.00317.59
8.1.60.0000.00917.65
8.1.50.0030.00617.52
8.1.40.0040.00417.53
8.1.30.0050.00317.59
8.1.20.0000.00817.70
8.1.10.0040.00417.68
8.1.00.0050.00217.66
8.0.300.0050.00219.98
8.0.290.0040.00416.75
8.0.280.0030.00318.48
8.0.270.0040.00417.34
8.0.260.0070.00017.02
8.0.250.0000.00717.02
8.0.240.0050.00216.92
8.0.230.0030.00317.08
8.0.220.0070.00016.95
8.0.210.0070.00016.93
8.0.200.0060.00017.02
8.0.190.0000.00917.00
8.0.180.0080.00016.91
8.0.170.0070.00017.00
8.0.160.0040.00417.02
8.0.150.0040.00416.83
8.0.140.0040.00416.91
8.0.130.0030.00313.45
8.0.120.0000.00716.86
8.0.110.0050.00316.77
8.0.100.0050.00316.77
8.0.90.0070.00016.86
8.0.80.0150.00316.95
8.0.70.0050.00316.85
8.0.60.0050.00216.80
8.0.50.0000.00817.05
8.0.30.0150.00417.13
8.0.20.0100.01017.40
8.0.10.0000.00817.06
8.0.00.0100.00716.98
7.4.330.0020.00315.55
7.4.320.0040.00416.67
7.4.300.0030.00316.76
7.4.290.0080.00016.64
7.4.280.0060.00316.63
7.4.270.0030.00316.57
7.4.260.0000.00716.64
7.4.250.0030.00316.75
7.4.240.0040.00416.56
7.4.230.0030.00316.79
7.4.220.0090.00916.61
7.4.210.0070.01216.73
7.4.200.0080.00016.79
7.4.160.0050.01116.73
7.4.150.0120.00617.40
7.4.140.0090.01017.86
7.4.130.0070.01716.57
7.4.120.0110.00716.67
7.4.110.0160.00316.61
7.4.100.0150.00916.53
7.4.90.0090.00916.71
7.4.80.0140.00919.39
7.4.70.0030.01516.57
7.4.60.0150.00316.89
7.4.50.0060.00616.51
7.4.40.0120.01216.67
7.4.30.0140.00416.55
7.4.00.0080.00815.03
7.3.330.0030.00313.19
7.3.320.0050.00013.13
7.3.310.0040.00416.44
7.3.300.0060.00016.23
7.3.290.0000.00816.43
7.3.280.0070.00916.36
7.3.270.0140.00417.40
7.3.260.0130.00916.49
7.3.250.0100.00816.58
7.3.240.0110.00816.58
7.3.230.0170.00016.71
7.3.210.0060.01116.46
7.3.200.0060.00916.75
7.3.190.0080.00816.68
7.3.180.0060.00916.50
7.3.170.0070.01016.65
7.3.160.0160.00616.38
7.3.120.0150.00414.98
7.3.110.0090.00614.83
7.3.100.0070.01115.26
7.3.90.0080.00315.18
7.3.80.0030.00714.78
7.3.70.0070.00315.07
7.3.60.0080.00815.13
7.3.50.0060.00915.07
7.3.40.0070.00715.04
7.3.30.0060.00914.76
7.3.20.0000.01616.79
7.3.10.0030.01016.71
7.3.00.0050.00616.63
7.2.330.0090.00916.85
7.2.320.0090.01316.84
7.2.310.0120.00416.88
7.2.300.0070.01016.96
7.2.290.0210.00416.74
7.2.250.0060.01215.11
7.2.240.0000.01715.23
7.2.230.0040.01515.16
7.2.220.0060.00315.36
7.2.210.0060.01015.09
7.2.200.0060.00615.17
7.2.190.0090.00615.07
7.2.180.0000.01614.87
7.2.170.0000.00915.06
7.2.130.0000.00917.19
7.2.120.0070.01016.99
7.2.110.0060.00616.80
7.2.100.0060.00916.97
7.2.90.0000.01416.98
7.2.80.0040.01117.15
7.2.70.0140.00316.92
7.2.60.0050.00817.00
7.2.50.0030.01017.18
7.2.40.0070.01016.88
7.2.30.0120.00617.05
7.2.20.0000.01417.03
7.2.10.0060.00917.17
7.2.00.0090.00618.20
7.1.330.0040.01116.02
7.1.320.0000.01215.84
7.1.310.0030.01216.02
7.1.300.0070.00716.10
7.1.290.0040.00416.05
7.1.280.0030.00716.16
7.1.270.0040.00415.72
7.1.260.0000.01115.96
7.1.250.0070.00715.67
7.1.240.0000.01115.74
7.1.230.0080.00315.91
7.1.220.0060.01015.95
7.1.210.0000.01016.14
7.1.200.0000.01015.86
7.1.190.0040.00815.80
7.1.180.0070.00316.10
7.1.170.0050.00216.09
7.1.160.0030.01015.73
7.1.150.0000.01115.66
7.1.140.0090.00915.96
7.1.130.0180.00016.01
7.1.120.0090.00615.97
7.1.110.0070.01016.03
7.1.100.0180.00617.15
7.1.90.0120.00415.70
7.1.80.0130.00315.83
7.1.70.0060.00616.60
7.1.60.0140.01125.53
7.1.50.0090.01325.48
7.1.40.0100.01225.32
7.1.30.0110.01425.29
7.1.20.0150.00725.42
7.1.10.0110.00316.29
7.1.00.0040.00816.38
7.0.330.0040.00415.45
7.0.320.0100.00315.43
7.0.310.0070.00415.23
7.0.300.0060.00615.42
7.0.290.0060.00615.64
7.0.280.0000.01315.40
7.0.270.0000.01015.47
7.0.260.0000.01115.19
7.0.250.0060.00315.53
7.0.240.0090.00315.40
7.0.230.0040.00715.74
7.0.220.0060.00615.15
7.0.210.0000.01315.59
7.0.200.0100.00616.15
7.0.190.0090.00416.33
7.0.180.0030.01215.86
7.0.170.0060.00715.86
7.0.160.0090.00915.94
7.0.150.0050.00815.81
7.0.140.0110.00516.04
7.0.130.0070.00716.04
7.0.120.0040.00816.06
7.0.110.0070.00815.98
7.0.100.0100.00515.92
7.0.90.0050.00915.87
7.0.80.0040.00915.97
7.0.70.0070.00916.03
7.0.60.0030.01315.64
7.0.50.0040.01315.92
7.0.40.0050.00615.02
7.0.30.0060.00715.04
7.0.20.0050.00915.02
7.0.10.0070.00914.94
7.0.00.0100.00615.08
5.6.380.0000.00814.08

preferences:
35.55 ms | 400 KiB | 5 Q