3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo preg_replace('~(user_upload/)([0-9]{1,2})/([0-9]{1,2})/(*.)\.(jpg|png)$~', '$1', 'http://service.aggreg8.com.au/user_upload/2/10/5694db093de61.jpg');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GBkOC
function name:  (null)
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'preg_replace'
          1        SEND_VAL                                                 '%7E%28user_upload%2F%29%28%5B0-9%5D%7B1%2C2%7D%29%2F%28%5B0-9%5D%7B1%2C2%7D%29%2F%28%2A.%29%5C.%28jpg%7Cpng%29%24%7E'
          2        SEND_VAL                                                 '%241'
          3        SEND_VAL                                                 'http%3A%2F%2Fservice.aggreg8.com.au%2Fuser_upload%2F2%2F10%2F5694db093de61.jpg'
          4        DO_ICALL                                         $0      
          5        ECHO                                                     $0
          6      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
183.75 ms | 1393 KiB | 15 Q