3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = ' <ul class="small-block-grid-1 medium-block-grid-3 large-block-grid-4 spCarousel"> <li><a href="/Nike-Pro-3-Shorts-131265.html"><img src="http://img1.theiconic.com.au/7BXi4UQfOYe0JssK5eoA2htIG_8=/fit-in/274x346/filters:fill(ffffff):quality(90):format(webp)/http%3A%2F%2Fstatic.theiconic.com.au%2Fp%2Fnike-5832-562131-2.jpg" width="100%"></a></li> <li><a href="http://www.theiconic.com.au/Tech-Capri-130367.html"><img src="http://img1.theiconic.com.au/SrNeE3dYXF1hF7NBDVNaeZhuTLA=/trim/fit-in/490x627/filters:quality(95):fill(ffffff)/http%3A%2F%2Fstatic.theiconic.com.au%2Fp%2Fnike-9908-763031-1.jpg" width="100%"></a></li> <li><a href="http://www.theiconic.com.au/Gelato-448-Push-Up-Crop-Top-in-Neon-Pink-158395.html"><img src="http://img1.theiconic.com.au/_Sh69_gKCFiagKDTtWEBaESt4WY=/trim/fit-in/490x627/filters:quality(95):fill(ffffff)/http%3A%2F%2Fstatic.theiconic.com.au%2Fp%2Frunning-bare-0938-593851-1.jpg" width="100%"></a></li> <li><a href="http://www.theiconic.com.au/Energy-Boost-2-in-Neon-Pink-162755.html"><img src="http://img1.theiconic.com.au/Kmd2GD5ZA_nNeyrLxyif2TYhGQM=/trim/fit-in/490x627/filters:quality(95):fill(ffffff)/http%3A%2F%2Fstatic.theiconic.com.au%2Fp%2Fadidas-performance-9782-557261-1.jpg" width="100%"></a></li> <div class="brand small-4 columns"> [//static.theiconic.com.au/cms/site_updates/Week 42/MSS_1_150x245px.jpg, (default)], [//static.theiconic.com.au/cms/site_updates/Week 42/MSS_1_150x245px.jpg, (medium)], [//static.theiconic.com.au/cms/site_updates/Week 42/MSS_1_150x245px.jpg, (large)], [//static.theiconic.com.au/cms/site_updates/Week 42/MSS_1_150x245px.jpg, (xlarge)]" //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="[//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="[//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="[//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); 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.0060.00916.75
8.3.50.0080.00616.54
8.3.40.0070.00718.96
8.3.30.0110.00418.80
8.3.20.0070.00020.29
8.3.10.0050.00323.43
8.3.00.0080.00019.56
8.2.180.0120.00318.67
8.2.170.0000.01422.96
8.2.160.0060.01219.23
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0000.00821.23
8.2.120.0040.00426.35
8.2.110.0000.01020.48
8.2.100.0040.00718.03
8.2.90.0000.00919.10
8.2.80.0050.00517.97
8.2.70.0000.00817.75
8.2.60.0030.00617.88
8.2.50.0050.00517.75
8.2.40.0040.00417.75
8.2.30.0030.00520.92
8.2.20.0070.00017.96
8.2.10.0000.00718.11
8.2.00.0070.00018.03
8.1.280.0040.01125.92
8.1.270.0000.00722.14
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0030.00623.83
8.1.230.0090.00320.91
8.1.220.0050.00317.74
8.1.210.0030.00518.77
8.1.200.0060.00317.35
8.1.190.0000.00917.39
8.1.180.0050.00318.10
8.1.170.0050.00218.92
8.1.160.0000.00819.00
8.1.150.0000.00818.83
8.1.140.0050.00219.56
8.1.130.0030.00318.89
8.1.120.0040.00417.57
8.1.110.0080.00017.51
8.1.100.0000.00717.43
8.1.90.0000.00817.53
8.1.80.0000.00717.64
8.1.70.0000.00817.53
8.1.60.0040.00417.61
8.1.50.0040.00417.67
8.1.40.0080.00017.61
8.1.30.0040.00417.75
8.1.20.0030.00517.77
8.1.10.0050.00217.63
8.1.00.0000.00717.61
8.0.300.0040.00418.77
8.0.290.0040.00417.00
8.0.280.0030.00318.38
8.0.270.0020.00517.18
8.0.260.0090.00016.95
8.0.250.0000.00716.97
8.0.240.0030.00316.93
8.0.230.0040.00416.94
8.0.220.0030.00316.99
8.0.210.0000.00716.91
8.0.200.0030.00317.12
8.0.190.0050.00317.10
8.0.180.0070.00016.97
8.0.170.0070.00017.00
8.0.160.0000.00717.04
8.0.150.0000.00816.80
8.0.140.0030.00316.95
8.0.130.0000.00713.36
8.0.120.0030.00516.93
8.0.110.0040.00417.07
8.0.100.0040.00416.89
8.0.90.0040.00416.95
8.0.80.0120.00616.95
8.0.70.0040.00417.05
8.0.60.0040.00416.84
8.0.50.0030.00516.89
8.0.30.0120.00917.40
8.0.20.0160.00817.40
8.0.10.0070.00016.90
8.0.00.0120.00917.15
7.4.330.0020.00215.55
7.4.320.0030.00316.68
7.4.300.0030.00316.71
7.4.290.0070.00016.68
7.4.280.0030.00516.68
7.4.270.0050.00216.70
7.4.260.0070.00016.65
7.4.250.0040.00416.75
7.4.240.0000.00716.70
7.4.230.0030.00316.65
7.4.220.0090.00916.70
7.4.210.0060.00916.89
7.4.200.0000.00716.75
7.4.160.0050.01116.68
7.4.150.0130.00417.40
7.4.140.0140.00817.86
7.4.130.0060.01616.82
7.4.120.0080.01116.63
7.4.110.0090.00916.73
7.4.100.0130.01016.76
7.4.90.0060.01616.64
7.4.80.0120.00419.39
7.4.70.0100.00616.59
7.4.60.0130.00316.54
7.4.50.0000.01816.46
7.4.40.0100.00716.77
7.4.30.0080.00816.67
7.4.10.0030.01414.84
7.4.00.0060.01215.19
7.3.330.0050.00013.20
7.3.320.0020.00213.10
7.3.310.0050.00316.40
7.3.300.0030.00316.32
7.3.290.0040.01016.36
7.3.280.0060.01016.29
7.3.270.0150.00417.40
7.3.260.0110.00716.36
7.3.250.0100.00716.39
7.3.240.0130.00816.67
7.3.230.0090.00916.50
7.3.210.0100.00616.69
7.3.200.0150.00316.44
7.3.190.0080.00816.23
7.3.180.0080.00816.33
7.3.170.0080.00816.62
7.3.160.0060.01116.55
7.3.130.0060.00914.88
7.3.120.0100.00714.77
7.3.110.0060.01314.80
7.3.100.0110.00414.96
7.3.90.0000.01114.91
7.3.80.0060.00714.69
7.3.70.0080.00414.82
7.3.60.0060.00614.77
7.3.50.0030.01414.76
7.3.40.0060.00614.98
7.3.30.0060.00615.05
7.3.20.0090.00616.47
7.3.10.0030.01216.71
7.3.00.0070.00716.37
7.2.330.0120.00816.63
7.2.320.0070.01516.66
7.2.310.0070.01016.75
7.2.300.0000.02016.61
7.2.290.0040.01416.68
7.2.260.0120.00815.12
7.2.250.0150.00315.16
7.2.240.0140.00315.02
7.2.230.0030.01215.23
7.2.220.0090.00615.06
7.2.210.0000.01115.21
7.2.200.0070.01115.31
7.2.190.0100.01015.25
7.2.180.0000.01615.09
7.2.170.0060.00314.83
7.2.160.0060.01315.13
7.2.150.0040.01116.68
7.2.140.0130.00617.03
7.2.130.0040.00916.96
7.2.120.0000.01217.02
7.2.110.0030.00716.79
7.2.100.0040.01117.02
7.2.90.0030.01316.77
7.2.80.0060.00917.00
7.2.70.0070.01017.13
7.2.60.0020.01016.94
7.2.50.0030.01017.09
7.2.40.0100.00716.89
7.2.30.0040.00917.18
7.2.20.0040.01216.72
7.2.10.0030.01416.99
7.2.00.0030.01318.23
7.1.330.0070.00715.82
7.1.320.0100.00715.97
7.1.310.0090.00616.10
7.1.300.0060.01215.76
7.1.290.0060.01215.76
7.1.280.0070.00715.72
7.1.270.0030.01615.79
7.1.260.0090.00015.86
7.1.250.0080.00815.83
7.1.240.0070.01015.96
7.1.230.0070.01015.90
7.1.220.0050.00516.00
7.1.210.0030.01015.87
7.1.200.0060.00615.91
7.1.190.0060.00815.94
7.1.180.0070.00315.63
7.1.170.0080.00416.01
7.1.160.0060.00616.07
7.1.150.0040.00815.69
7.1.140.0030.01016.05
7.1.130.0150.00015.91
7.1.120.0030.01215.88
7.1.110.0080.00415.73
7.1.100.0070.00717.15
7.1.90.0030.00916.04
7.1.80.0130.00315.72
7.1.70.0180.01215.77
7.1.60.0260.00824.57
7.1.50.0260.00524.68
7.1.40.0210.01124.32
7.1.30.0270.00724.43
7.1.20.0210.01124.45
7.1.10.0100.01415.23
7.1.00.0150.00915.51
7.0.330.0060.00915.39
7.0.320.0030.00915.46
7.0.310.0090.00315.54
7.0.300.0030.01015.33
7.0.290.0030.01115.59
7.0.280.0060.00615.36
7.0.270.0060.00315.59
7.0.260.0070.00715.46
7.0.250.0090.00615.69
7.0.240.0030.01115.38
7.0.230.0030.01015.80
7.0.220.0120.00315.73
7.0.210.0090.00615.45
7.0.200.0130.01215.19
7.0.190.0170.01115.33
7.0.180.0200.00314.87
7.0.170.0200.00814.95
7.0.160.0220.00514.94
7.0.150.0160.00614.96
7.0.140.0160.00715.06
7.0.130.0330.00615.02
7.0.120.0170.00715.18
7.0.110.0150.00815.18
7.0.100.0210.00515.13
7.0.90.0590.00515.12
7.0.80.0140.00615.17
7.0.70.0140.00915.21
7.0.60.0170.00315.13
7.0.50.0150.00615.20
7.0.40.0170.00814.17
7.0.30.0140.01114.38
7.0.20.0170.00814.07
7.0.10.0160.00814.31
7.0.00.0120.01114.14
5.6.400.0110.00314.73
5.6.390.0030.01414.76
5.6.380.0070.00314.56
5.6.370.0130.00314.34
5.6.360.0110.00314.33
5.6.350.0030.01314.23
5.6.340.0060.00914.46
5.6.330.0080.00414.17
5.6.320.0060.00914.02
5.6.310.0090.00914.50
5.6.300.0060.00314.18
5.6.290.0090.00614.39
5.6.280.0030.01414.56
5.6.270.0000.01114.16
5.6.260.0040.01214.41
5.6.250.0030.01014.41
5.6.240.0050.00514.58
5.6.230.0090.00614.39
5.6.220.0060.01014.04
5.6.210.0040.01114.13
5.6.200.0130.00314.36
5.6.190.0030.01014.18
5.6.180.0090.00914.60
5.6.170.0090.00314.41
5.6.160.0070.00714.02
5.6.150.0030.00714.36
5.6.140.0000.00914.18
5.6.130.0070.00714.47
5.6.120.0060.00914.18
5.6.110.0040.00714.38
5.6.100.0130.00314.36
5.6.90.0130.00614.46
5.6.80.0120.00614.15
5.6.70.0060.00614.20
5.6.60.0000.01614.48
5.6.50.0100.00714.38
5.6.40.0040.01113.99
5.6.30.0100.00414.46
5.6.20.0040.01214.14
5.6.10.0070.00714.13
5.6.00.0030.01013.96

preferences:
44.04 ms | 401 KiB | 5 Q