3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $markup = ' <div id="outer"> <ul id="ancTop"> <li style="font-family: arial; font-size: 9pt;"> <div style="overflow: hidden; width: 690px; height: 17px;"> &nbsp;                   <a href="#">                    A90&nbsp;-&nbsp;Lorem Ipsum                   </a>                 </div>               </li>               <li style="font-family: arial; font-size: 9pt;">                 <div style="overflow: hidden; width: 690px; height: 17px;">                   &nbsp;                   <a href="#">                    A85&nbsp;-&nbsp; Lorem Ipsum                   </a>                 </div>               </li> </ul> </div>'; preg_match( '/<ul.*?">(.*?)</ul>/s', $markup, $matches ); echo ($matches[0]);
based on jgMlD
Output for 5.2.0 - 7.1.0
Warning: preg_match(): Unknown modifier 'l' in /in/KLb93 on line 23
Output for 4.3.11 - 5.1.6
Warning: preg_match(): Unknown modifier 'l' in /in/KLb93 on line 23 Notice: Undefined offset: 0 in /in/KLb93 on line 24
Output for 4.3.0 - 4.3.10
Warning: Unknown modifier 'l' in /in/KLb93 on line 23 Notice: Undefined offset: 0 in /in/KLb93 on line 24