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); 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.0090.00618.30
8.3.50.0130.00716.51
8.3.40.0100.01018.78
8.3.30.0040.01118.97
8.3.20.0080.00020.29
8.3.10.0070.00021.89
8.3.00.0000.00819.56
8.2.180.0120.00916.63
8.2.170.0170.00022.96
8.2.160.0070.00719.21
8.2.150.0100.00024.18
8.2.140.0050.00324.66
8.2.130.0050.00321.09
8.2.120.0070.00026.35
8.2.110.0100.00022.23
8.2.100.0070.01017.79
8.2.90.0030.00619.05
8.2.80.0040.00417.97
8.2.70.0030.00617.71
8.2.60.0060.00617.79
8.2.50.0040.00418.10
8.2.40.0040.00420.59
8.2.30.0040.00419.20
8.2.20.0000.00717.91
8.2.10.0070.00018.09
8.2.00.0040.00417.91
8.1.280.0090.00625.92
8.1.270.0110.00722.07
8.1.260.0070.00026.35
8.1.250.0000.00728.09
8.1.240.0090.00023.74
8.1.230.0090.00322.66
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0030.00617.35
8.1.190.0000.00817.35
8.1.180.0040.00418.10
8.1.170.0000.01020.45
8.1.160.0030.00518.97
8.1.150.0050.00218.89
8.1.140.0000.00719.43
8.1.130.0000.00718.86
8.1.120.0040.00417.63
8.1.110.0000.00817.49
8.1.100.0000.00817.59
8.1.90.0050.00317.59
8.1.80.0000.00817.56
8.1.70.0000.00717.45
8.1.60.0030.00617.67
8.1.50.0030.00617.53
8.1.40.0040.00417.62
8.1.30.0040.00417.65
8.1.20.0000.00817.78
8.1.10.0040.00417.58
8.1.00.0050.00317.53
8.0.300.0040.00418.77
8.0.290.0030.00616.88
8.0.280.0070.00018.49
8.0.270.0040.00417.05
8.0.260.0070.00016.89
8.0.250.0030.00317.05
8.0.240.0070.00317.05
8.0.230.0040.00417.07
8.0.220.0030.00316.95
8.0.210.0040.00416.86
8.0.200.0000.00616.96
8.0.190.0000.00817.09
8.0.180.0030.00616.90
8.0.170.0050.00216.93
8.0.160.0030.00616.98
8.0.150.0030.00416.95
8.0.140.0000.00916.88
8.0.130.0030.00313.41
8.0.120.0030.00516.89
8.0.110.0040.00417.06
8.0.100.0080.00016.79
8.0.90.0000.00717.02
8.0.80.0130.00417.02
8.0.70.0000.00816.91
8.0.60.0030.00516.84
8.0.50.0040.00417.01
8.0.30.0100.00817.38
8.0.20.0110.00817.44
8.0.10.0000.00716.98
8.0.00.0060.01417.05
7.4.330.0050.00015.55
7.4.320.0060.00016.62
7.4.300.0030.00316.66
7.4.290.0030.01016.60
7.4.280.0040.00416.74
7.4.270.0020.00516.66
7.4.260.0000.00716.71
7.4.250.0000.00716.70
7.4.240.0050.00216.70
7.4.230.0070.00016.51
7.4.220.0200.00016.70
7.4.210.0050.01416.65
7.4.200.0030.00316.84
7.4.160.0060.01016.76
7.4.150.0070.01117.40
7.4.140.0170.00417.86
7.4.130.0070.01016.71
7.4.120.0110.01016.62
7.4.110.0050.01616.83
7.4.100.0070.01316.47
7.4.90.0030.01316.69
7.4.80.0060.00919.39
7.4.70.0070.01016.87
7.4.60.0100.00616.40
7.4.50.0090.00616.63
7.4.40.0090.01216.46
7.4.30.0090.00916.75
7.4.00.0110.00414.90
7.3.330.0030.00313.17
7.3.320.0040.00413.14
7.3.310.0000.00816.12
7.3.300.0000.00616.34
7.3.290.0080.00716.34
7.3.280.0080.00916.29
7.3.270.0180.00617.40
7.3.260.0130.00516.50
7.3.250.0120.00616.43
7.3.240.0100.00916.37
7.3.230.0100.01016.57
7.3.210.0070.01016.58
7.3.200.0060.01216.32
7.3.190.0060.01216.77
7.3.180.0030.01416.48
7.3.170.0120.00916.64
7.3.160.0070.00816.60
7.3.120.0030.01414.74
7.3.110.0030.01614.75
7.3.100.0060.00914.68
7.3.90.0060.01114.79
7.3.80.0060.01014.72
7.3.70.0080.01214.89
7.3.60.0060.00914.92
7.3.50.0070.00314.76
7.3.40.0060.00614.56
7.3.30.0110.00414.85
7.3.20.0150.00316.56
7.3.10.0100.00316.70
7.3.00.0120.00316.39
7.2.330.0090.00916.79
7.2.320.0100.00716.70
7.2.310.0180.00616.66
7.2.300.0100.00716.69
7.2.290.0060.01216.78
7.2.250.0070.01115.02
7.2.240.0000.01914.97
7.2.230.0070.00715.05
7.2.220.0070.00715.04
7.2.210.0120.00315.11
7.2.200.0070.00415.19
7.2.190.0060.01315.30
7.2.180.0000.01514.78
7.2.170.0090.00915.22
7.2.160.0060.00815.04
7.2.150.0000.01617.04
7.2.140.0070.01116.54
7.2.130.0030.00916.63
7.2.120.0080.00816.79
7.2.110.0090.00616.96
7.2.100.0080.00316.85
7.2.90.0070.01016.68
7.2.80.0060.01217.05
7.2.70.0040.01117.09
7.2.60.0020.00916.85
7.2.50.0000.01417.07
7.2.40.0060.00816.86
7.2.30.0060.01316.56
7.2.20.0070.00417.05
7.2.10.0120.00616.90
7.2.00.0090.00518.07
7.1.330.0060.01215.75
7.1.320.0030.01315.69
7.1.310.0070.00415.83
7.1.300.0080.00415.91
7.1.290.0070.00715.89
7.1.280.0050.00515.61
7.1.270.0080.00815.54
7.1.260.0150.00015.82
7.1.250.0000.01115.57
7.1.240.0090.00315.72
7.1.230.0070.00715.96
7.1.220.0070.01015.84
7.1.210.0070.00715.66
7.1.200.0060.00815.74
7.1.190.0000.01315.84
7.1.180.0040.01115.75
7.1.170.0060.00615.86
7.1.160.0040.01115.64
7.1.150.0030.01315.55
7.1.140.0080.00815.75
7.1.130.0070.00715.70
7.1.120.0070.00715.79
7.1.110.0100.00315.86
7.1.100.0020.00817.11
7.1.90.0090.00615.86
7.1.80.0060.00915.80
7.1.70.0110.00516.58
7.1.60.0130.00625.44
7.1.50.0140.00925.43
7.1.40.0160.00825.26
7.1.30.0110.01525.09
7.1.20.0100.01425.35
7.1.10.0050.01016.20
7.1.00.0080.00716.28
7.0.330.0060.00615.48
7.0.320.0080.00515.24
7.0.310.0060.00915.54
7.0.300.0040.01115.50
7.0.290.0060.01215.37
7.0.280.0030.01015.32
7.0.270.0060.00615.50
7.0.260.0090.00315.14
7.0.250.0100.00315.74
7.0.240.0030.00715.46
7.0.230.0120.00015.41
7.0.220.0070.00715.55
7.0.210.0030.01015.55
7.0.200.0060.00816.28
7.0.190.0050.00916.28
7.0.180.0080.01016.03
7.0.170.0040.01015.76
7.0.160.0100.00415.89
7.0.150.0070.00815.97
7.0.140.0040.01416.02
7.0.130.0020.01416.09
7.0.120.0050.00716.04
7.0.110.0030.00916.03
7.0.100.0090.00615.97
7.0.90.0080.01116.06
7.0.80.0130.00316.02
7.0.70.0020.01315.96
7.0.60.0050.00815.93
7.0.50.0070.00615.98
7.0.40.0030.01015.01
7.0.30.0070.00615.14
7.0.20.0050.00915.05
7.0.10.0100.00214.89
7.0.00.0070.00815.03
5.6.400.0070.00714.27
5.6.390.0070.00714.33
5.6.380.0040.00814.17
5.6.370.0030.01314.46
5.6.360.0000.01214.65
5.6.350.0040.01214.27
5.6.340.0100.00314.16
5.6.330.0080.00014.10
5.6.320.0090.00314.15
5.6.310.0090.00014.30
5.6.300.0070.00314.39
5.6.290.0060.00914.04
5.6.280.0060.00914.50
5.6.270.0060.00614.30
5.6.260.0040.01114.03
5.6.250.0060.00614.41
5.6.240.0140.00014.11
5.6.230.0120.00313.95
5.6.220.0120.00614.18
5.6.210.0100.00314.27
5.6.200.0140.00414.18
5.6.190.0080.00414.45
5.6.180.0030.01214.37
5.6.170.0090.00014.37
5.6.160.0060.01014.15
5.6.150.0100.00714.23
5.6.140.0110.00414.23
5.6.130.0130.00314.32
5.6.120.0090.00614.21
5.6.110.0060.00914.21
5.6.100.0060.00814.17
5.6.90.0070.00414.41
5.6.80.0030.01014.11
5.6.70.0070.00714.29
5.6.60.0080.00514.08
5.6.50.0100.00314.33
5.6.40.0090.00614.41
5.6.30.0030.00814.16
5.6.20.0080.00813.96
5.6.10.0030.01014.31
5.6.00.0100.00614.14

preferences:
45.49 ms | 401 KiB | 5 Q