3v4l.org

run code in 300+ PHP versions simultaneously
<?php $re = "/(media|images)(.*?)(.jpg|.jpeg|.png)/"; $str = 'images/test/test-1.png" alt="test-1" /></a><a href="/test-2" title="test 2"><img src="/images/test/test2.png" alt="test2" /></a> <a href="/test-3" title="Cruises in Croatia"><img src="/images/EET/test-3.png'; preg_match_all($re,$str,$matches ); print_r($matches);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8Haqm
function name:  (null)
number of ops:  11
compiled vars:  !0 = $re, !1 = $str, !2 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%2F%28media%7Cimages%29%28.%2A%3F%29%28.jpg%7C.jpeg%7C.png%29%2F'
    4     1        ASSIGN                                                   !1, 'images%2Ftest%2Ftest-1.png%22+alt%3D%22test-1%22+%2F%3E%3C%2Fa%3E%3Ca+href%3D%22%2Ftest-2%22+title%3D%22test+2%22%3E%3Cimg+src%3D%22%2Fimages%2Ftest%2Ftest2.png%22+alt%3D%22test2%22+%2F%3E%3C%2Fa%3E+++++++++++++++%3Ca+href%3D%22%2Ftest-3%22+title%3D%22Cruises+in+Croatia%22%3E%3Cimg+src%3D%22%2Fimages%2FEET%2Ftest-3.png'
    5     2        INIT_FCALL                                               'preg_match_all'
          3        SEND_VAR                                                 !0
          4        SEND_VAR                                                 !1
          5        SEND_REF                                                 !2
          6        DO_ICALL                                                 
    6     7        INIT_FCALL                                               'print_r'
          8        SEND_VAR                                                 !2
          9        DO_ICALL                                                 
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
138.7 ms | 1000 KiB | 15 Q