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"> [https://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.0080.00816.63
8.3.50.0000.01416.79
8.3.40.0120.00318.79
8.3.30.0080.00618.84
8.3.20.0040.00420.39
8.3.10.0040.00423.65
8.3.00.0080.00019.68
8.2.180.0140.00718.66
8.2.170.0070.00722.96
8.2.160.0090.00919.21
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0050.00319.30
8.2.120.0040.00426.35
8.2.110.0060.00320.38
8.2.100.0120.00017.71
8.2.90.0080.00018.98
8.2.80.0090.00018.04
8.2.70.0060.00317.75
8.2.60.0040.00418.03
8.2.50.0030.00618.10
8.2.40.0050.00320.34
8.2.30.0000.00820.91
8.2.20.0050.00318.11
8.2.10.0040.00418.04
8.2.00.0050.00218.04
8.1.280.0100.00725.92
8.1.270.0050.00322.14
8.1.260.0030.00526.35
8.1.250.0040.00428.09
8.1.240.0060.00322.07
8.1.230.0090.00419.15
8.1.220.0040.00417.74
8.1.210.0030.00518.77
8.1.200.0060.00317.35
8.1.190.0030.00517.35
8.1.180.0040.00418.10
8.1.170.0060.00318.66
8.1.160.0000.00718.98
8.1.150.0030.00518.79
8.1.140.0070.00019.61
8.1.130.0030.00318.92
8.1.120.0000.00717.48
8.1.110.0000.00717.58
8.1.100.0050.00317.49
8.1.90.0110.00017.55
8.1.80.0080.00017.46
8.1.70.0050.00217.50
8.1.60.0000.00717.64
8.1.50.0030.00517.54
8.1.40.0060.00317.50
8.1.30.0030.00617.81
8.1.20.0000.00817.67
8.1.10.0030.00617.60
8.1.00.0000.00717.51
8.0.300.0050.00319.93
8.0.290.0070.00016.88
8.0.280.0030.00318.49
8.0.270.0000.00717.29
8.0.260.0060.00316.91
8.0.250.0000.00716.96
8.0.240.0000.00816.95
8.0.230.0080.00016.89
8.0.220.0000.00716.87
8.0.210.0060.00317.06
8.0.200.0000.00616.96
8.0.190.0030.00517.02
8.0.180.0050.00217.05
8.0.170.0000.00716.95
8.0.160.0030.00516.89
8.0.150.0040.00416.95
8.0.140.0070.00016.84
8.0.130.0030.00313.40
8.0.120.0040.00416.88
8.0.110.0040.00416.98
8.0.100.0040.00416.87
8.0.90.0030.00516.98
8.0.80.0080.01217.04
8.0.70.0040.00417.04
8.0.60.0000.00817.04
8.0.50.0040.00416.81
8.0.30.0110.00817.11
8.0.20.0110.01117.40
8.0.10.0000.00717.12
8.0.00.0040.01517.03
7.4.330.0000.00515.55
7.4.320.0060.00016.75
7.4.300.0030.00316.77
7.4.290.0040.00416.75
7.4.280.0000.00716.77
7.4.270.0040.00416.53
7.4.260.0050.00316.65
7.4.250.0000.00716.78
7.4.240.0040.00416.78
7.4.230.0000.00716.81
7.4.220.0110.00716.88
7.4.210.0040.01116.81
7.4.200.0000.00816.52
7.4.160.0070.01016.69
7.4.150.0180.00017.40
7.4.140.0140.00817.86
7.4.130.0150.01116.81
7.4.120.0070.01216.70
7.4.110.0100.00716.79
7.4.100.0100.01416.80
7.4.90.0090.01216.68
7.4.80.0060.01319.39
7.4.70.0100.00716.70
7.4.60.0100.00716.69
7.4.50.0100.00416.54
7.4.40.0190.00616.50
7.4.30.0070.01116.73
7.4.10.0090.00914.95
7.4.00.0100.00615.17
7.3.330.0000.00513.11
7.3.320.0000.00513.19
7.3.310.0040.00416.46
7.3.300.0000.00716.15
7.3.290.0060.00916.33
7.3.280.0080.00916.32
7.3.270.0040.01617.40
7.3.260.0110.00916.42
7.3.250.0090.01316.49
7.3.240.0110.00916.34
7.3.230.0060.01216.62
7.3.210.0060.01216.51
7.3.200.0110.00916.36
7.3.190.0120.00916.68
7.3.180.0050.01716.65
7.3.170.0060.01016.44
7.3.160.0120.00416.48
7.3.130.0040.01215.06
7.3.120.0030.01215.09
7.3.110.0090.00814.77
7.3.100.0050.00915.03
7.3.90.0050.01014.93
7.3.80.0060.01115.02
7.3.70.0060.00714.84
7.3.60.0080.00514.94
7.3.50.0030.01014.79
7.3.40.0060.00814.86
7.3.30.0020.01214.91
7.3.20.0060.00716.53
7.3.10.0070.00816.73
7.3.00.0050.01016.73
7.2.330.0120.00616.68
7.2.320.0160.00616.70
7.2.310.0060.01216.51
7.2.300.0100.00716.64
7.2.290.0080.01116.66
7.2.260.0070.01015.34
7.2.250.0060.01315.24
7.2.240.0060.01015.17
7.2.230.0070.00915.16
7.2.220.0090.00615.08
7.2.210.0070.00915.10
7.2.200.0040.00614.93
7.2.190.0070.01015.12
7.2.180.0090.00715.13
7.2.170.0050.01015.09
7.2.160.0050.01115.03
7.2.150.0030.01217.04
7.2.140.0020.01316.99
7.2.130.0020.00916.97
7.2.120.0060.01116.89
7.2.110.0020.01317.13
7.2.100.0090.00316.90
7.2.90.0070.00817.07
7.2.80.0060.00916.92
7.2.70.0080.00717.04
7.2.60.0080.00616.99
7.2.50.0090.00616.99
7.2.40.0080.01016.89
7.2.30.0050.01117.01
7.2.20.0120.00516.98
7.2.10.0060.00816.98
7.2.00.0070.00817.69
7.1.330.0050.00915.86
7.1.320.0050.00916.07
7.1.310.0030.01015.89
7.1.300.0060.00815.92
7.1.290.0050.01115.78
7.1.280.0060.00916.00
7.1.270.0050.01015.83
7.1.260.0050.00715.91
7.1.250.0050.00715.92
7.1.240.0060.00916.04
7.1.230.0050.00515.86
7.1.220.0030.00615.93
7.1.210.0030.01215.82
7.1.200.0050.00715.90
7.1.190.0040.00715.79
7.1.180.0000.01515.81
7.1.170.0080.00415.87
7.1.160.0030.01015.80
7.1.150.0090.00316.08
7.1.140.0000.01015.89
7.1.130.0090.00015.99
7.1.120.0030.01415.70
7.1.110.0120.00415.84
7.1.100.0060.00417.07
7.1.90.0040.01115.93
7.1.80.0080.00416.00
7.1.70.0030.01016.42
7.1.60.0110.00925.51
7.1.50.0130.00725.38
7.1.40.0110.01025.20
7.1.30.0090.01025.10
7.1.20.0120.01125.19
7.1.10.0030.01516.42
7.1.00.0010.01316.26
7.0.330.0030.00915.36
7.0.320.0060.00315.31
7.0.310.0080.00615.39
7.0.300.0100.00315.59
7.0.290.0140.00315.59
7.0.280.0000.01915.18
7.0.270.0000.01215.55
7.0.260.0060.00915.51
7.0.250.0120.00615.62
7.0.240.0070.00415.45
7.0.230.0000.01115.41
7.0.220.0060.00315.52
7.0.210.0080.00015.51
7.0.200.0020.01116.28
7.0.190.0040.00716.17
7.0.180.0060.00815.83
7.0.170.0060.00615.90
7.0.160.0050.00715.99
7.0.150.0070.00715.92
7.0.140.0070.00716.12
7.0.130.0100.00515.79
7.0.120.0030.01116.04
7.0.110.0070.00715.83
7.0.100.0070.00515.90
7.0.90.0070.00615.96
7.0.80.0050.01016.03
7.0.70.0050.01116.09
7.0.60.0070.00715.78
7.0.50.0110.00216.14
7.0.40.0090.00615.20
7.0.30.0050.01115.17
7.0.20.0030.01114.91
7.0.10.0070.00415.07
7.0.00.0060.00815.05
5.6.400.0030.01014.34
5.6.390.0030.01014.45
5.6.380.0030.01014.12
5.6.370.0100.00313.93
5.6.360.0030.01014.31
5.6.350.0000.01714.10
5.6.340.0090.00914.31
5.6.330.0070.00714.19
5.6.320.0090.00614.61
5.6.310.0070.00314.23
5.6.300.0030.01014.61
5.6.290.0100.00014.39
5.6.280.0090.00614.28
5.6.270.0090.00314.32
5.6.260.0030.01314.24
5.6.250.0080.00414.41
5.6.240.0030.01014.51
5.6.230.0000.01614.14
5.6.220.0000.01014.34
5.6.210.0140.00014.27
5.6.200.0030.01314.39
5.6.190.0120.00314.59
5.6.180.0080.00814.33
5.6.170.0070.01114.02
5.6.160.0070.00714.56
5.6.150.0030.00914.36
5.6.140.0070.00714.59
5.6.130.0070.01014.18
5.6.120.0060.00814.11
5.6.110.0030.01314.44
5.6.100.0060.00914.21
5.6.90.0070.01114.43
5.6.80.0030.01613.96
5.6.70.0100.00614.29
5.6.60.0080.00414.01
5.6.50.0070.00414.34
5.6.40.0060.00914.13
5.6.30.0040.01114.05
5.6.20.0000.01313.96
5.6.10.0030.01013.89
5.6.00.0040.00414.13

preferences:
54.92 ms | 401 KiB | 5 Q