3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "blur/blur/myPhotoName_20170818_111453.jpg"; Preg_match("/.*\/(.*?)_.*(\..*)/", $str, $match); Echo $match[1] . $match[2];
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9oTuj
function name:  (null)
number of ops:  11
compiled vars:  !0 = $str, !1 = $match
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'blur%2Fblur%2FmyPhotoName_20170818_111453.jpg'
    3     1        INIT_FCALL                                               'preg_match'
          2        SEND_VAL                                                 '%2F.%2A%5C%2F%28.%2A%3F%29_.%2A%28%5C..%2A%29%2F'
          3        SEND_VAR                                                 !0
          4        SEND_REF                                                 !1
          5        DO_ICALL                                                 
    5     6        FETCH_DIM_R                                      ~4      !1, 1
          7        FETCH_DIM_R                                      ~5      !1, 2
          8        CONCAT                                           ~6      ~4, ~5
          9        ECHO                                                     ~6
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.6 ms | 1394 KiB | 15 Q