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)[^>]*><\/(?:span|div)>#i",'',$_content,-1,$count); } while ($count > 0); //var_dump($matches); echo $_content; ?>
Output for 5.1.0 - 5.1.6, 5.2.0 - 5.2.17, 5.3.0 - 5.3.29, 5.4.0 - 5.4.45, 5.5.24 - 5.5.35, 5.6.8 - 5.6.28, 7.0.0 - 7.0.20, 7.1.0 - 7.1.25, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.27, 8.2.0 - 8.2.17, 8.3.0 - 8.3.4
<thumb style="display: none;"><img src="/wp-content/uploads/2014/10/be98dc71560ae864.jpg.jpg"></thumb> <div><div> </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>
Output for 4.3.0 - 4.3.11, 4.4.0 - 4.4.1, 4.4.3 - 4.4.9, 5.0.0 - 5.0.5
Warning: Wrong parameter count for preg_replace() in /in/U00F7 on line 22
Output for 4.4.2
Warning: Wrong parameter count for preg_replace() in /in/U00F7 on line 23

preferences:
248.01 ms | 401 KiB | 322 Q