3v4l.org

run code in 300+ PHP versions simultaneously
<?php $_content = <<<HMX <thumb style="display: none;"><img src="/wp-content/uploads/2014/10/be98dc71560ae864.jpg.jpg"></thumb> <div><div> <span st_url="http://www.occupy.com/article/4-blackwater-contractors-found-guilty-iraq-massacre-%E2%80%93-verdict-long-overdue" st_title="4 Blackwater Contractors Found Guilty In Iraq Massacre &ndash; A Verdict Long Overdue" displaytext="sharethis"></span> <span st_url="http://www.occupy.com/article/4-blackwater-contractors-found-guilty-iraq-massacre-%E2%80%93-verdict-long-overdue" st_title="4 Blackwater Contractors Found Guilty In Iraq Massacre &ndash; A Verdict Long Overdue" displaytext="email"></span> <span st_url="http://www.occupy.com/article/4-blackwater-contractors-found-guilty-iraq-massacre-%E2%80%93-verdict-long-overdue" st_title="4 Blackwater Contractors Found Guilty In Iraq Massacre &ndash; A Verdict Long Overdue" displaytext="reddit"></span> <span st_url="http://www.occupy.com/article/4-blackwater-contractors-found-guilty-iraq-massacre-%E2%80%93-verdict-long-overdue" st_title="4 Blackwater Contractors Found Guilty In Iraq Massacre &ndash; A Verdict Long Overdue #occupy" st_via="occupy" st_username="" displaytext="twitter"></span> <span st_url="http://www.occupy.com/article/4-blackwater-contractors-found-guilty-iraq-massacre-%E2%80%93-verdict-long-overdue" st_title="4 Blackwater Contractors Found Guilty In Iraq Massacre &ndash; A Verdict Long Overdue" displaytext="plusone"></span> <span st_url="http://www.occupy.com/article/4-blackwater-contractors-found-guilty-iraq-massacre-%E2%80%93-verdict-long-overdue" st_title="4 Blackwater Contractors Found Guilty In Iraq Massacre &ndash; A Verdict Long Overdue" displaytext="fblike"></span> </div></div> <a href="http://www.occupy.com/article/4-blackwater-contractors-found-guilty-iraq-massacre-%E2%80%93-verdict-long-overdue"><img src="http://www.occuworld.org/wp-content/uploads/2014/10/be98dc71560ae864.jpg.jpg?itok=Fxb98rUD" width="140" height="140"></a><p>Not simply individual guards should answer for this tragedy &ndash; but the leaders of private security companies and the governments that employ them must also be held to account.</p> <div class="post_source_linkbar"> <a class="post_source_logo" href="http://www.occupy.com/rss"><img class="post_source_logo" src="http://www.occupy.com/sites/default/themes/occupyzen/logo.png"></a><img class="post_source_icon" title="Occupy.com" src="http://www.google.com/s2/favicons?domain=http%3A%2F%2Fwww.occupy.com%2Frss"><a class="post_source" target="_blank" href="http://www.occupy.com/article/4-blackwater-contractors-found-guilty-iraq-massacre-%C3%A2%C2%80%C2%93-verdict-long-overdue">Source</a> </div> HMX; //preg_match("#<span[^>]*st_url[^>]*><\/span>#i",$_content,$matches); preg_match_all("#<(?:span|div)[^>]*><\/(?:span|div)>#i",$_content,$matches); var_dump($matches); //echo $_content;

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.38
8.3.50.0120.00822.07
8.3.40.0090.00618.80
8.3.30.0030.01019.15
8.3.20.0070.00020.33
8.3.10.0030.00523.64
8.3.00.0080.00019.38
8.2.180.0150.00418.29
8.2.170.0140.00722.96
8.2.160.0030.01020.35
8.2.150.0090.00024.18
8.2.140.0080.00024.66
8.2.130.0040.00726.16
8.2.120.0020.00522.32
8.2.110.0040.00720.53
8.2.100.0060.00618.03
8.2.90.0040.00419.05
8.2.80.0080.00017.97
8.2.70.0040.00417.75
8.2.60.0000.01217.91
8.2.50.0080.00018.07
8.2.40.0060.00320.00
8.2.30.0050.00317.89
8.2.20.0000.00717.83
8.2.10.0000.00717.95
8.2.00.0000.00817.84
8.1.280.0060.01225.92
8.1.270.0040.00422.04
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0030.00623.61
8.1.230.0090.00319.04
8.1.220.0050.00317.74
8.1.210.0050.00318.77
8.1.200.0000.00817.35
8.1.190.0030.00517.35
8.1.180.0060.00618.10
8.1.170.0000.00818.64
8.1.160.0000.00821.86
8.1.150.0070.00018.89
8.1.140.0030.00617.54
8.1.130.0040.00417.77
8.1.120.0040.00417.63
8.1.110.0090.00017.48
8.1.100.0000.00817.46
8.1.90.0070.00017.58
8.1.80.0040.00417.52
8.1.70.0030.00317.49
8.1.60.0050.00517.66
8.1.50.0030.00617.50
8.1.40.0040.00417.62
8.1.30.0030.00517.77
8.1.20.0000.00817.66
8.1.10.0030.00517.71
8.1.00.0040.00417.67
8.0.300.0070.00018.77
8.0.290.0000.00716.88
8.0.280.0030.00318.41
8.0.270.0070.00017.09
8.0.260.0030.00317.19
8.0.250.0070.00017.00
8.0.240.0030.00317.13
8.0.230.0040.00416.93
8.0.220.0050.00217.07
8.0.210.0030.00317.05
8.0.200.0000.00717.13
8.0.190.0050.00317.17
8.0.180.0000.00817.13
8.0.170.0050.00317.00
8.0.160.0070.00217.00
8.0.150.0040.00417.00
8.0.140.0040.00416.99
8.0.130.0060.00013.43
8.0.120.0030.00516.90
8.0.110.0000.00717.11
8.0.100.0000.00717.09
8.0.90.0050.00217.02
8.0.80.0030.01916.95
8.0.70.0040.00417.11
8.0.60.0000.00717.05
8.0.50.0040.00417.08
8.0.30.0090.01016.92
8.0.20.0080.01517.41
8.0.10.0050.00317.12
8.0.00.0110.01016.79
7.4.330.0000.00415.00
7.4.320.0060.00016.76
7.4.300.0000.00616.67
7.4.290.0030.00316.68
7.4.280.0000.00716.66
7.4.270.0050.00316.77
7.4.260.0000.00716.73
7.4.250.0080.00016.61
7.4.240.0020.00516.71
7.4.230.0000.00716.75
7.4.220.0030.01616.67
7.4.210.0110.00716.66
7.4.200.0040.00416.51
7.4.160.0200.00316.59
7.4.150.0060.01417.40
7.4.140.0110.00817.86
7.4.130.0110.00816.68
7.4.120.0080.00816.68
7.4.110.0040.01316.64
7.4.100.0150.00416.64
7.4.90.0130.00616.86
7.4.80.0140.00719.39
7.4.70.0100.00716.63
7.4.60.0160.00616.61
7.4.50.0060.00316.60
7.4.40.0090.01216.71
7.4.30.0090.00916.56
7.4.00.0070.00714.77
7.3.330.0000.00613.27
7.3.320.0000.00513.34
7.3.310.0000.00716.32
7.3.300.0030.00316.38
7.3.290.0070.00016.40
7.3.280.0080.01016.37
7.3.270.0130.00917.40
7.3.260.0130.00516.56
7.3.250.0120.00516.60
7.3.240.0170.00316.42
7.3.230.0110.01116.58
7.3.210.0030.01316.44
7.3.200.0060.01619.39
7.3.190.0060.01416.59
7.3.180.0120.00316.41
7.3.170.0080.00816.66
7.3.160.0040.01216.30
7.2.330.0110.00716.77
7.2.320.0080.01116.78
7.2.310.0120.00616.71
7.2.300.0070.01416.69
7.2.290.0130.00416.65
7.2.00.0060.00619.17
7.1.100.0200.01217.79
7.1.70.0000.01817.16
7.1.60.0070.01719.32
7.1.50.0030.01017.03
7.1.00.0070.09322.53
7.0.200.0000.00816.79
7.0.140.0070.06321.96
7.0.60.0100.07319.92
7.0.50.0100.08317.94
7.0.40.0100.04020.00
7.0.30.0500.06720.11
7.0.20.0170.06020.19
7.0.10.0070.07320.20
7.0.00.0000.04720.18
5.6.280.0030.07320.86
5.6.210.0070.07720.55
5.6.200.0070.07318.17
5.6.190.0070.08720.27
5.6.180.0300.06020.43
5.6.170.0170.04020.56
5.6.160.0100.05720.41
5.6.150.0100.08018.20
5.6.140.0100.07718.21
5.6.130.0130.07718.16
5.6.120.0070.08320.75
5.6.110.0130.07720.99
5.6.100.0100.03720.88
5.6.90.0100.06721.13
5.6.80.0070.07320.38
5.5.350.0070.08720.43
5.5.340.0100.05717.91
5.5.330.0000.05720.06
5.5.320.0300.04020.27
5.5.310.0230.03320.27
5.5.300.0030.04717.91
5.5.290.0030.04717.96
5.5.280.0070.04020.89
5.5.270.0130.07720.87
5.5.260.0070.07320.80
5.5.250.0030.04320.59
5.5.240.0170.08020.04
5.4.450.0670.06019.29
5.4.440.0800.05719.45
5.4.430.1030.06319.48
5.4.420.0670.00019.52
5.4.410.0670.00019.31
5.4.400.0670.00019.23
5.4.390.0630.00018.96
5.4.380.0670.00019.14
5.4.370.0630.00018.97
5.4.360.0600.00019.06
5.4.350.0670.00019.13
5.4.340.0060.03511.97
5.4.320.0070.03712.46
5.4.310.0090.03512.45
5.4.300.0060.04612.46
5.4.290.0050.03912.45
5.4.280.0070.03412.35
5.4.270.0090.03312.35
5.4.260.0060.03712.35
5.4.250.0080.03512.35
5.4.240.0070.03512.36
5.4.230.0070.03612.34
5.4.220.0100.03212.35
5.4.210.0080.03712.34
5.4.200.0060.04012.35
5.4.190.0080.03512.34
5.4.180.0040.03812.34
5.4.170.0070.03712.36
5.4.160.0060.03712.35
5.4.150.0070.03712.35
5.4.140.0070.04312.03
5.4.130.0050.03812.02
5.4.120.0050.03611.97
5.4.110.0050.03611.98
5.4.100.0090.03511.97
5.4.90.0080.03411.97
5.4.80.0070.03611.97
5.4.70.0050.03611.97
5.4.60.0070.03411.97
5.4.50.0070.03411.97
5.4.40.0090.03211.95
5.4.30.0070.03611.95
5.4.20.0080.04511.95
5.4.10.0050.03511.95
5.4.00.0050.03611.44
5.3.290.0080.04112.80
5.3.280.0050.04212.71
5.3.270.0050.04112.72
5.3.260.0060.03912.72
5.3.250.0080.03612.72
5.3.240.0090.03412.72
5.3.230.0080.03812.71
5.3.220.0050.04012.68
5.3.210.0050.05012.68
5.3.200.0060.05512.68
5.3.190.0040.05212.68
5.3.180.0130.04312.67
5.3.170.0080.04112.67
5.3.160.0080.03912.67
5.3.150.0120.03312.67
5.3.140.0070.03512.66
5.3.130.0080.03712.66
5.3.120.0100.03512.66
5.3.110.0060.03912.65
5.3.100.0050.03912.12
5.3.90.0080.03512.09
5.3.80.0100.03312.08
5.3.70.0070.03612.07
5.3.60.0060.03612.07
5.3.50.0080.03512.00
5.3.40.0080.03412.01
5.3.30.0060.03511.96
5.3.20.0100.03111.73
5.3.10.0070.03311.70
5.3.00.0040.03811.69
5.2.170.0060.0319.20
5.2.160.0060.0289.20
5.2.150.0050.0319.20
5.2.140.0050.0319.20
5.2.130.0060.0289.16
5.2.120.0040.0299.16
5.2.110.0060.0289.16
5.2.100.0030.0319.16
5.2.90.0060.0289.16
5.2.80.0070.0299.16
5.2.70.0060.0299.15
5.2.60.0020.0339.11
5.2.50.0060.0299.07
5.2.40.0040.0309.05
5.2.30.0040.0399.03
5.2.20.0060.0349.15
5.2.10.0070.0279.06
5.2.00.0030.0328.91
5.1.60.0040.0248.21
5.1.50.0030.0258.20
5.1.40.0070.0218.18
5.1.30.0050.0288.53
5.1.20.0020.0298.55
5.1.10.0060.0248.28
5.1.00.0030.0268.29
5.0.50.0050.0196.75
5.0.40.0030.0226.62
5.0.30.0030.0326.43
5.0.20.0020.0216.40
5.0.10.0050.0186.38
5.0.00.0060.0286.37
4.4.90.0020.0164.79
4.4.80.0040.0144.77
4.4.70.0050.0144.77
4.4.60.0040.0154.77
4.4.50.0030.0174.77
4.4.40.0050.0274.76
4.4.30.0020.0174.76
4.4.20.0030.0164.84
4.4.10.0040.0154.85
4.4.00.0040.0254.79
4.3.110.0040.0154.69
4.3.100.0070.0134.69
4.3.90.0050.0164.67
4.3.80.0020.0254.66
4.3.70.0030.0144.66
4.3.60.0020.0164.67
4.3.50.0040.0154.66
4.3.40.0030.0254.61
4.3.30.0030.0163.42
4.3.20.0030.0153.40
4.3.10.0060.0123.25
4.3.00.0100.0237.33

preferences:
52.35 ms | 401 KiB | 5 Q