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>";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Uffb5
function name:  (null)
number of ops:  18
compiled vars:  !0 = $body, !1 = $img_array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%3Cimg+alt%3D%27%27+src%3D%27http%3A%2F%2Fimg.dev.teeeest%2Fimages%2FUID%27+%2F%3E%0A%3Cimg+alt%3D%27%27+src%3D%27https%3A%2F%2Fimg.deaaav.test.com%2Fimages%2FUID.ux%2F%27+%2F%3E%0A%3Cimg+alt%3D%27%27+src%3D%27http%3A%2F%2Fapi.com%2Fimages%2FUID%27+%2F%3E%0A%3Cimg+alt%3D%27%27+src%3D%27http%3A%2F%2Fimg.deaSassav.test%2Fimages%2FUID%27+%2F%3E%0A%3Cimg+alt%3D%27%27+src%3D%27https%3A%2F%2Fimg.dev.test%2Fimages%2FUID%27+%2F%3E'
    8     1        INIT_FCALL                                               'stripslashes'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $3      
          4        ASSIGN                                                   !0, $3
    9     5        ASSIGN                                                   !1, <array>
   10     6        INIT_FCALL                                               'preg_match_all'
          7        SEND_VAL                                                 '%2F%3Cimg.%2A%3Fsrc%3D%27%28%3F%21http%5Bs%5D%2A%3A%5C%2F%5C%2Fimg.%5Ba-zA-Z0-9%5D%2A.test%5C%2F%29%28.%2A%3F%29%2FimU'
          8        SEND_VAR                                                 !0
          9        SEND_REF                                                 !1
         10        DO_ICALL                                                 
   11    11        ECHO                                                     '%3Cpre%3E'
   12    12        INIT_FCALL                                               'print_r'
         13        FETCH_DIM_R                                      ~7      !1, 0
         14        SEND_VAL                                                 ~7
         15        DO_ICALL                                                 
   13    16        ECHO                                                     '%3C%2Fpre%3E'
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.63 ms | 1003 KiB | 16 Q