3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $html = "<a href='asdafsdF'>imim</a>"; preg_match_all('#<a.*?href="([^<>]*?)\?img_id=(\d+)"\s*>((?<!href).)*<img.*?src="(.*?)"#i',$html,$outA);
Output for 4.3.0 - 7.1.0