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); do { $_content = preg_replace("#<(?:span|div)[^>]*><\/(?:span|div)>#i",'',$_content,-1,$count); } while ($count > 0); //var_dump($matches); echo $_content; ?>
Output for 5.1.3 - 5.1.6, 5.2.0 - 5.2.17, 5.3.0 - 5.3.29, 5.4.0 - 5.4.45, 5.5.0 - 5.5.38, 5.6.0 - 5.6.38, 7.0.0 - 7.0.33, 7.1.0 - 7.1.33, 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.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.4, 8.3.6
<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 8.3.5
Warning: PHP Startup: Unable to load dynamic library 'sodium.so' (tried: /usr/lib/php/8.3.5/modules/sodium.so (libsodium.so.23: cannot open shared object file: No such file or directory), /usr/lib/php/8.3.5/modules/sodium.so.so (/usr/lib/php/8.3.5/modules/sodium.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 <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 5.1.2
Notice: Undefined variable: count in /in/nk41j on line 22 Notice: Undefined variable: count in /in/nk41j on line 23 <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 5.1.0 - 5.1.1
Notice: Undefined variable: count in /in/nk41j on line 21 Notice: Undefined variable: count in /in/nk41j on line 22 <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 5.0.4 - 5.0.5
Notice: Undefined variable: count in /in/nk41j on line 21 Warning: Wrong parameter count for preg_replace() in /in/nk41j on line 21 Notice: Undefined variable: count in /in/nk41j on line 22
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.3
Notice: Undefined variable: count in /in/nk41j on line 21 Warning: Wrong parameter count for preg_replace() in /in/nk41j on line 21 Notice: Undefined variable: count in /in/nk41j on line 22
Output for 4.4.2
Notice: Undefined variable: count in /in/nk41j on line 22 Warning: Wrong parameter count for preg_replace() in /in/nk41j on line 22 Notice: Undefined variable: count in /in/nk41j on line 23

preferences:
297.73 ms | 401 KiB | 454 Q