3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $content = '<div id="rates-deposit"> <table cellspacing="0"> <tr> <th>EUR</th> <th>USD</th> <th>CNY</th> <th>JPY</th> </tr> <tr> <td class="u">50,50<ins></ins></td> <td class="u">36,45<ins></ins></td> <td class="u">5,96<ins></ins></td> <td class="n">0,36<ins></ins></td> </tr> </table> </div>'; preg_match_all("#<th>(.*?)</th>#is",$content,$array); print_r($array);
Output for 4.3.0 - 7.1.0
Array ( [0] => Array ( [0] => <th>EUR</th> [1] => <th>USD</th> [2] => <th>CNY</th> [3] => <th>JPY</th> ) [1] => Array ( [0] => EUR [1] => USD [2] => CNY [3] => JPY ) )