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"> [http://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('#\bhttp://[^,\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.63
8.3.50.0090.00616.74
8.3.40.0000.01518.75
8.3.30.0110.00418.76
8.3.20.0040.00420.28
8.3.10.0060.00323.50
8.3.00.0030.00619.55
8.2.180.0060.01218.23
8.2.170.0090.00622.96
8.2.160.0090.00919.21
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00419.45
8.2.120.0040.00426.35
8.2.110.0060.00320.35
8.2.100.0040.00817.91
8.2.90.0000.01019.09
8.2.80.0030.00517.97
8.2.70.0060.00317.63
8.2.60.0000.00817.80
8.2.50.0040.00418.10
8.2.40.0020.00520.54
8.2.30.0040.00420.88
8.2.20.0040.00418.11
8.2.10.0030.00518.05
8.2.00.0000.00717.98
8.1.280.0030.01725.92
8.1.270.0070.00022.10
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0110.00022.08
8.1.230.0110.00420.87
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0030.00617.35
8.1.190.0050.00317.25
8.1.180.0000.00918.10
8.1.170.0030.00618.71
8.1.160.0070.00019.06
8.1.150.0040.00418.78
8.1.140.0030.00619.52
8.1.130.0030.00318.87
8.1.120.0080.00017.60
8.1.110.0040.00417.50
8.1.100.0000.00817.61
8.1.90.0090.00017.55
8.1.80.0040.00417.64
8.1.70.0000.00817.56
8.1.60.0050.00217.72
8.1.50.0080.00017.60
8.1.40.0070.00417.65
8.1.30.0030.00517.71
8.1.20.0030.00517.65
8.1.10.0040.00417.70
8.1.00.0040.00417.64
8.0.300.0000.00820.02
8.0.290.0030.00516.88
8.0.280.0070.00018.36
8.0.270.0000.00717.27
8.0.260.0060.00316.99
8.0.250.0000.00716.98
8.0.240.0000.00717.03
8.0.230.0040.00317.04
8.0.220.0000.00717.00
8.0.210.0030.00316.88
8.0.200.0030.00317.06
8.0.190.0040.00417.05
8.0.180.0070.00016.89
8.0.170.0000.00717.00
8.0.160.0000.00716.93
8.0.150.0000.00717.00
8.0.140.0080.00016.84
8.0.130.0030.00313.49
8.0.120.0000.00816.99
8.0.110.0040.00416.94
8.0.100.0050.00316.83
8.0.90.0040.00416.88
8.0.80.0120.00316.95
8.0.70.0040.00416.82
8.0.60.0050.00316.95
8.0.50.0040.00417.04
8.0.30.0100.00717.17
8.0.20.0120.00917.43
8.0.10.0000.00717.06
8.0.00.0050.01317.13
7.4.330.0050.00015.55
7.4.320.0000.00616.63
7.4.300.0030.00316.74
7.4.290.0060.00316.66
7.4.280.0040.00416.81
7.4.270.0030.00316.59
7.4.260.0070.00016.77
7.4.250.0030.00516.66
7.4.240.0000.00716.79
7.4.230.0050.00216.68
7.4.220.0120.01316.86
7.4.210.0070.00716.88
7.4.200.0040.00416.76
7.4.160.0060.01016.51
7.4.150.0090.00917.40
7.4.140.0090.01217.86
7.4.130.0180.00316.69
7.4.120.0110.00916.63
7.4.110.0160.00316.46
7.4.100.0000.02316.83
7.4.90.0130.01016.65
7.4.80.0030.01319.39
7.4.70.0130.00716.64
7.4.60.0040.01216.62
7.4.50.0060.01016.46
7.4.40.0100.00716.80
7.4.30.0040.01216.57
7.4.10.0040.01415.18
7.4.00.0050.01115.22
7.3.330.0020.00213.20
7.3.320.0050.00013.19
7.3.310.0040.00416.45
7.3.300.0070.00016.32
7.3.290.0010.01316.30
7.3.280.0110.00516.29
7.3.270.0090.00917.40
7.3.260.0090.00916.51
7.3.250.0090.00816.49
7.3.240.0150.00316.39
7.3.230.0100.00716.74
7.3.210.0000.01616.39
7.3.200.0090.00616.78
7.3.190.0060.01016.42
7.3.180.0040.01316.40
7.3.170.0030.01316.41
7.3.160.0090.00616.41
7.3.130.0110.00714.88
7.3.120.0060.01114.61
7.3.110.0100.00614.86
7.3.100.0040.01114.84
7.3.90.0090.00614.86
7.3.80.0040.01215.11
7.3.70.0060.00815.00
7.3.60.0030.00614.90
7.3.50.0110.00314.99
7.3.40.0070.00314.74
7.3.30.0100.00314.98
7.3.20.0060.00316.80
7.3.10.0100.00716.65
7.3.00.0060.00616.67
7.2.330.0040.01316.82
7.2.320.0060.01216.83
7.2.310.0030.01516.68
7.2.300.0000.01616.66
7.2.290.0140.00416.77
7.2.260.0070.01015.14
7.2.250.0100.01014.82
7.2.240.0090.00915.14
7.2.230.0000.01515.22
7.2.220.0030.01214.95
7.2.210.0030.01015.14
7.2.200.0000.01215.25
7.2.190.0110.00314.84
7.2.180.0000.00915.13
7.2.170.0140.00415.20
7.2.160.0080.00314.98
7.2.150.0060.00316.91
7.2.140.0000.01316.64
7.2.130.0040.00816.84
7.2.120.0130.00316.96
7.2.110.0100.00617.04
7.2.100.0130.00316.92
7.2.90.0120.00317.06
7.2.80.0110.00316.80
7.2.70.0060.00916.57
7.2.60.0050.00717.03
7.2.50.0030.01016.93
7.2.40.0070.00716.97
7.2.30.0060.00817.15
7.2.20.0070.00716.78
7.2.10.0000.01516.73
7.2.00.0030.01516.96
7.1.330.0070.00715.86
7.1.320.0050.00515.86
7.1.310.0090.00615.98
7.1.300.0060.01215.82
7.1.290.0070.00715.63
7.1.280.0110.00315.89
7.1.270.0060.00316.06
7.1.260.0000.01416.00
7.1.250.0030.00616.11
7.1.240.0040.01116.02
7.1.230.0070.01016.01
7.1.220.0070.01016.02
7.1.210.0000.01315.84
7.1.200.0080.00315.96
7.1.190.0030.00815.96
7.1.180.0090.00015.84
7.1.170.0070.00715.90
7.1.160.0070.00415.92
7.1.150.0030.00715.92
7.1.140.0080.00415.69
7.1.130.0080.00315.91
7.1.120.0030.00715.96
7.1.110.0090.00615.98
7.1.100.0030.00817.09
7.1.90.0000.01116.04
7.1.80.0000.01315.76
7.1.70.0020.00616.69
7.1.60.0030.01016.61
7.1.50.0020.01116.47
7.1.40.0060.00816.40
7.1.30.0090.00716.34
7.1.20.0030.01216.33
7.1.10.0090.00716.49
7.1.00.0040.01016.56
7.0.330.0070.00715.67
7.0.320.0090.00015.38
7.0.310.0040.01115.44
7.0.300.0070.00415.55
7.0.290.0060.00915.71
7.0.280.0090.00615.38
7.0.270.0090.00615.40
7.0.260.0040.00815.73
7.0.250.0070.00715.37
7.0.240.0030.01015.57
7.0.230.0100.00315.66
7.0.220.0130.00015.78
7.0.210.0100.00615.74
7.0.200.0050.00716.08
7.0.190.0040.00816.31
7.0.180.0030.01116.14
7.0.170.0020.00916.10
7.0.160.0040.00915.84
7.0.150.0050.00815.96
7.0.140.0030.00815.90
7.0.130.0100.00416.26
7.0.120.0100.00616.03
7.0.110.0050.01016.08
7.0.100.0060.01116.08
7.0.90.0050.00716.09
7.0.80.0020.01116.18
7.0.70.0070.00615.88
7.0.60.0080.00615.94
7.0.50.0070.00816.22
7.0.40.0060.00614.59
7.0.30.0000.01014.44
7.0.20.0050.00714.59
7.0.10.0030.01214.48
7.0.00.0040.00614.58
5.6.400.0040.01114.45
5.6.390.0060.00614.55
5.6.380.0000.00913.85
5.6.370.0040.01114.48
5.6.360.0040.00814.30
5.6.350.0110.00414.11
5.6.340.0100.00714.45
5.6.330.0060.01014.09
5.6.320.0030.01014.55
5.6.310.0040.01114.44
5.6.300.0060.00614.17
5.6.290.0030.01014.27
5.6.280.0110.00814.18
5.6.270.0030.01614.33
5.6.260.0030.01614.21
5.6.250.0060.01014.31
5.6.240.0070.01114.22
5.6.230.0000.00814.34
5.6.220.0070.00714.20
5.6.210.0100.00714.19
5.6.200.0140.00314.37
5.6.190.0060.00614.33
5.6.180.0070.00714.48
5.6.170.0030.00914.22
5.6.160.0070.00714.26
5.6.150.0150.00314.42
5.6.140.0070.00714.20
5.6.130.0120.00614.27
5.6.120.0000.01014.41
5.6.110.0030.01414.53
5.6.100.0140.00014.38
5.6.90.0030.00614.23
5.6.80.0060.00914.08
5.6.70.0040.00714.13
5.6.60.0030.01314.31
5.6.50.0090.00614.45
5.6.40.0070.00713.98
5.6.30.0060.00614.31
5.6.20.0070.00714.34
5.6.10.0040.01114.30
5.6.00.0080.00314.34

preferences:
49.52 ms | 400 KiB | 5 Q