3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $cool ='<li><span class="sidebar-vote-number"><a href="/story.php?title=gamestarts now">1</a></span><span class="sidebar-article"><a href="/story.php?title=googlegoogle-google-google" class="switchurl">GoogleGoogle Google Google</a></span></li> Published News</a></div> </div> <div class="boxcontent"> <ul class="sidebar-stories"> <li><span class="sidebar-vote-number"><a href="/story.php?title=googlegoogle-google-google">1</a></span><span class="sidebar-article"><a href="/story.php?title=googlegoogle-google-google" class="switchurl">GoogleGoogle Google Google</a></span></li>'; preg_match('~Published News.*<li><span class="sidebar-vote-number"><a href="([^"]*)~m', $cool, $match); var_dump($match);
Output for 4.3.0 - 7.1.0
array(0) { }