3v4l.org

run code in 300+ PHP versions simultaneously
<?php $enclosure = 'http://www.somesite.com/path1/path2/path3/somefile.150x150.jpg.jpg?size=150'; $pattern = '#(\.(png|jpg|jpeg|jpe|gif|tif|tiff|svg|ico|icon|x-icon)[\?]+)+#i'; preg_match($pattern,$enclosure,$matches); var_dump($matches);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VZUEH
function name:  (null)
number of ops:  11
compiled vars:  !0 = $enclosure, !1 = $pattern, !2 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'http%3A%2F%2Fwww.somesite.com%2Fpath1%2Fpath2%2Fpath3%2Fsomefile.150x150.jpg.jpg%3Fsize%3D150'
    4     1        ASSIGN                                                   !1, '%23%28%5C.%28png%7Cjpg%7Cjpeg%7Cjpe%7Cgif%7Ctif%7Ctiff%7Csvg%7Cico%7Cicon%7Cx-icon%29%5B%5C%3F%5D%2B%29%2B%23i'
    6     2        INIT_FCALL                                               'preg_match'
          3        SEND_VAR                                                 !1
          4        SEND_VAR                                                 !0
          5        SEND_REF                                                 !2
          6        DO_ICALL                                                 
    8     7        INIT_FCALL                                               'var_dump'
          8        SEND_VAR                                                 !2
          9        DO_ICALL                                                 
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.41 ms | 1385 KiB | 17 Q