3v4l.org

run code in 300+ PHP versions simultaneously
<?php $body = "<img alt='' src='http://img.dev.teeeest/images/UID' /> <img alt='' src='https://img.deaaav.test.com/images/UID.ux/' /> <img alt='' src='http://api.com/images/UID' /> <img alt='' src='http://img.deaSassav.test/images/UID' /> <img alt='' src='https://img.dev.test/images/UID' />"; $body = stripslashes($body); $img_array = array(); preg_match_all("/<img.*?src='(?!http[s]*:\/\/img.[a-zA-Z0-9]*.test\/)(.*?)/imU", $body, $img_array); echo "<pre>"; print_r($img_array[0]); echo "</pre>";

preferences:
33.32 ms | 406 KiB | 5 Q