3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $html = '<div align="center"> <a href="/readphoto?url=http://mt0.haibao.cn/store/wm/bigfiles/201212/887FDCBFE9CB9BB681F4D5C544A885.jpg" target="_blank"><img src="http://mt0.haibao.cn/store/wm/bigfiles/201212/887FDCBFE9CB9BB681F4D5C544A885.jpg"/></a><br/><br/> <div align="center"> <strong><strong><a class="topic_a" href="/zhuanti/海报5周年/" target="_blank">海报时尚网5周年</a>主题活动“Share Your Fashion Moment” </strong><br/><strong> </strong><br/><strong> <strong><strong><strong>分享人:</strong></strong></strong></strong><a class="topic_a" href="/fashion/名模/" target="_blank">超模</a>赵磊 &nbsp;</strong> </div><strong><br/></strong> <div align="left"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 赵磊的个性标签:满世界跑的“宅男”,不喜欢人多的环境,偶尔和朋友打打球;与品牌知名度比起来,更注重衣服的舒适和品质。<br/><br/><br/> </div> </div>'; preg_match_all('/<\s*img(.*)src=\"(.*)\" rel=\"(.*)\"/isU', $html, $imageArr); //preg_match_all('/<\s*img(.*)rel=\"(.*)\" src=\"(.*)\"/isU', $html, $imageArr); //preg_match_all('/<\s*img(.*)src=\"(.*)\"\s*\/>/isU', $html, $imageArr); print_r($imageArr);
based on 3Jv82
Output for 5.6.0 - 5.6.30, hhvm-3.18.5 - 3.22.0, 7.0.0 - 7.3.0beta1
Array ( [0] => Array ( ) [1] => Array ( ) [2] => Array ( ) [3] => Array ( ) )