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); $count = 0; do { $_content = preg_replace("#<(?:span|div)[^>]*>\s*<\/(?:span|div)>#i",'',$_content,-1,$count); } while ($count > 0); //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.0120.00618.43
8.3.50.0140.00522.02
8.3.40.0150.00619.15
8.3.30.0080.00618.82
8.3.20.0000.00720.16
8.3.10.0040.00423.53
8.3.00.0080.00019.50
8.2.180.0170.00316.63
8.2.170.0000.01422.96
8.2.160.0130.00720.53
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0070.00026.16
8.2.120.0050.00322.18
8.2.110.0030.00620.51
8.2.100.0080.00417.84
8.2.90.0040.00419.08
8.2.80.0080.00017.97
8.2.70.0080.00417.50
8.2.60.0090.00017.80
8.2.50.0000.00818.07
8.2.40.0000.00820.05
8.2.30.0020.00517.96
8.2.20.0040.00417.72
8.2.10.0000.00718.05
8.2.00.0040.00417.83
8.1.280.0080.00525.92
8.1.270.0040.00422.19
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0070.00323.84
8.1.230.0040.00819.08
8.1.220.0040.00417.76
8.1.210.0040.00418.77
8.1.200.0060.00317.35
8.1.190.0080.00017.50
8.1.180.0030.00618.10
8.1.170.0000.00818.65
8.1.160.0000.00721.96
8.1.150.0000.00718.84
8.1.140.0030.00617.55
8.1.130.0000.00717.82
8.1.120.0000.00717.61
8.1.110.0030.00517.68
8.1.100.0080.00017.61
8.1.90.0050.00317.54
8.1.80.0000.00717.55
8.1.70.0030.00517.60
8.1.60.0000.00817.61
8.1.50.0080.00017.70
8.1.40.0050.00317.71
8.1.30.0050.00317.81
8.1.20.0030.00617.69
8.1.10.0000.00817.71
8.1.00.0050.00317.66
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0000.00718.42
8.0.270.0000.00717.29
8.0.260.0030.00317.20
8.0.250.0030.00317.05
8.0.240.0030.00317.22
8.0.230.0000.00817.18
8.0.220.0030.00316.99
8.0.210.0030.00317.03
8.0.200.0030.00317.11
8.0.190.0050.00217.24
8.0.180.0000.00817.14
8.0.170.0040.00417.13
8.0.160.0100.00017.04
8.0.150.0000.00717.02
8.0.140.0040.00417.02
8.0.130.0060.00013.50
8.0.120.0030.00517.00
8.0.110.0080.00016.99
8.0.100.0020.00517.13
8.0.90.0040.00517.07
8.0.80.0110.00717.10
8.0.70.0000.00817.09
8.0.60.0020.00517.23
8.0.50.0040.00417.15
8.0.30.0060.01217.08
8.0.20.0090.01417.40
8.0.10.0080.00017.35
8.0.00.0080.01017.13
7.4.330.0020.00215.00
7.4.320.0000.00716.75
7.4.300.0030.00316.72
7.4.290.0040.00416.73
7.4.280.0030.00516.73
7.4.270.0000.00716.63
7.4.260.0060.00316.78
7.4.250.0000.00716.61
7.4.240.0020.00616.72
7.4.230.0000.00716.85
7.4.220.0070.01816.85
7.4.210.0100.00316.79
7.4.200.0070.00016.83
7.4.160.0000.01616.91
7.4.150.0060.01217.40
7.4.140.0130.00617.86
7.4.130.0120.00616.74
7.4.120.0130.00516.67
7.4.110.0070.01016.82
7.4.100.0050.01316.70
7.4.90.0060.01216.78
7.4.80.0160.00319.39
7.4.70.0110.00516.80
7.4.60.0130.00316.69
7.4.50.0050.00016.86
7.4.40.0080.00816.75
7.4.30.0160.00616.67
7.4.00.0090.00615.06
7.3.330.0050.00013.34
7.3.320.0000.00513.32
7.3.310.0040.00416.29
7.3.300.0000.00716.41
7.3.290.0040.01616.53
7.3.280.0080.00816.41
7.3.270.0130.00617.40
7.3.260.0110.00516.69
7.3.240.0100.01016.68
7.3.230.0240.00016.75
7.3.210.0100.00616.48
7.3.200.0140.00819.39
7.3.190.0090.00916.70
7.3.180.0140.00316.64
7.3.170.0080.00816.52
7.3.160.0110.01116.62
7.2.330.0110.00716.64
7.2.320.0030.02016.55
7.2.310.0030.01416.83
7.2.300.0100.00616.81
7.2.290.0100.00716.83
7.2.60.0100.00317.02
7.2.00.0040.01119.44
7.1.200.0000.01615.63
7.1.100.0060.00618.41
7.1.70.0080.00817.11
7.1.60.0100.01019.32
7.1.50.0040.01217.29
7.1.00.0100.07022.39
7.0.200.0030.00616.79
7.0.140.0000.07021.95
7.0.60.0070.07019.94
7.0.50.0100.04017.94
7.0.40.0270.04019.98
7.0.30.0230.04020.23
7.0.20.0470.06320.35
7.0.10.0070.06020.10
7.0.00.0100.05020.18
5.6.280.0070.07020.91
5.6.210.0200.06720.47
5.6.200.0000.05018.16
5.6.190.0030.08020.63
5.6.180.0330.07320.35
5.6.170.0270.03720.54
5.6.160.0100.04320.52
5.6.150.0100.04318.09
5.6.140.0030.08318.11
5.6.130.0030.08318.20
5.6.120.0100.05020.93
5.6.110.0030.08020.96
5.6.100.0100.03721.00
5.6.90.0000.08720.88
5.6.80.0070.08020.48
5.5.350.0200.08020.36
5.5.340.0000.04717.95
5.5.330.0100.05320.21
5.5.320.0300.08720.34
5.5.310.0130.04720.25
5.5.300.0030.04017.93
5.5.290.0100.03317.95
5.5.280.0100.07320.75
5.5.270.0030.08720.75
5.5.260.0170.07320.76
5.5.250.0030.07320.66
5.5.240.0300.06720.23
5.4.450.1130.06019.29
5.4.440.0770.06019.44
5.4.430.1070.07019.23
5.4.420.0630.00019.51
5.4.410.0630.00019.35
5.4.400.0670.00019.40
5.4.390.0630.00019.05
5.4.380.0670.00019.13
5.4.370.0630.00019.07
5.4.360.0830.00019.05
5.4.350.0670.00019.07
5.4.340.0080.04211.97
5.4.320.0050.04112.46
5.4.310.0080.03912.46
5.4.300.0110.04112.46
5.4.290.0130.07812.46
5.4.280.0130.07312.35
5.4.270.0120.05812.35
5.4.260.0190.06312.35
5.4.250.0160.04112.35
5.4.240.0060.03912.35
5.4.230.0080.03912.35
5.4.220.0090.04012.34
5.4.210.0080.04712.35
5.4.200.0100.05312.35
5.4.190.0090.08212.34
5.4.180.0090.07212.34
5.4.170.0170.11212.36
5.4.160.0120.04412.35
5.4.150.0190.05612.34
5.4.140.0090.06512.03
5.4.130.0120.04012.02
5.4.120.0070.04611.98
5.4.110.0100.03611.97
5.4.100.0100.05911.97
5.4.90.0180.09011.97
5.4.80.0100.05411.97
5.4.70.0110.06211.97
5.4.60.0120.05411.97
5.4.50.0080.04011.97
5.4.40.0070.03811.96
5.4.30.0090.03711.95
5.4.20.0030.03911.95
5.4.10.0080.03811.96
5.4.00.0060.05011.45
5.3.290.0030.05012.80
5.3.280.0030.04412.71
5.3.270.0120.04312.73
5.3.260.0090.05312.72
5.3.250.0110.05112.72
5.3.240.0100.03912.71
5.3.230.0270.09012.71
5.3.220.0110.05412.68
5.3.210.0070.04112.68
5.3.200.0170.05312.68
5.3.190.0110.05612.68
5.3.180.0110.04012.67
5.3.170.0070.04812.67
5.3.160.0100.04312.68
5.3.150.0080.03912.67
5.3.140.0050.04312.66
5.3.130.0060.04412.66
5.3.120.0120.07612.66
5.3.110.0090.04812.66
5.3.100.0150.06112.12
5.3.90.0080.03712.09
5.3.80.0080.03812.08
5.3.70.0080.04412.07
5.3.60.0110.04412.06
5.3.50.0070.04712.00
5.3.40.0100.04512.00
5.3.30.0100.05011.96
5.3.20.0200.05811.74
5.3.10.0090.04011.71
5.3.00.0070.04411.70
5.2.170.0220.0689.21
5.2.160.0050.0339.20
5.2.150.0160.0519.21
5.2.140.0100.0439.20
5.2.130.0080.0379.16
5.2.120.0150.0429.16
5.2.110.0050.0409.16
5.2.100.0090.0389.16
5.2.90.0060.0339.17
5.2.80.0070.0389.16
5.2.70.0240.0899.16
5.2.60.0210.0959.11
5.2.50.0040.0449.08
5.2.40.0090.0379.06
5.2.30.0130.0419.04
5.2.20.0070.0329.16
5.2.10.0090.0289.06
5.2.00.0080.0388.91
5.1.60.0040.0318.21
5.1.50.0050.0258.21
5.1.40.0050.0268.19
5.1.30.0040.0298.53
5.1.20.0080.0358.56
5.1.10.0040.0298.29
5.1.00.0030.0298.29
5.0.50.0050.0196.76
5.0.40.0050.0246.61
5.0.30.0050.0396.43
5.0.20.0040.0236.40
5.0.10.0100.0246.37
5.0.00.0090.0426.37
4.4.90.0090.0204.78
4.4.80.0030.0314.75
4.4.70.0050.0164.76
4.4.60.0010.0184.75
4.4.50.0040.0144.77
4.4.40.0030.0264.76
4.4.30.0050.0224.76
4.4.20.0070.0334.84
4.4.10.0060.0234.85
4.4.00.0050.0404.79
4.3.110.0070.0224.69
4.3.100.0200.0694.68
4.3.90.0050.0214.66
4.3.80.0080.0494.66
4.3.70.0060.0374.66
4.3.60.0050.0184.66
4.3.50.0120.0254.66
4.3.40.0160.0514.61
4.3.30.0100.0443.43
4.3.20.0040.0463.40
4.3.10.0020.0273.25
4.3.00.0200.0207.33

preferences:
35.31 ms | 401 KiB | 5 Q