3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = '/srv/www/CMNTY_Platform2/uploads/config/1601-1700/1647/1446543710_maxresdefault.jpg'; $rel = preg_filter('/(uploads\/config\/.+)$/', '$1', str); var_dump($rel);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/QibCf
function name:  (null)
number of ops:  12
compiled vars:  !0 = $str, !1 = $rel
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%2Fsrv%2Fwww%2FCMNTY_Platform2%2Fuploads%2Fconfig%2F1601-1700%2F1647%2F1446543710_maxresdefault.jpg'
    4     1        INIT_FCALL                                               'preg_filter'
          2        SEND_VAL                                                 '%2F%28uploads%5C%2Fconfig%5C%2F.%2B%29%24%2F'
          3        SEND_VAL                                                 '%241'
          4        FETCH_CONSTANT                                   ~3      'str'
          5        SEND_VAL                                                 ~3
          6        DO_ICALL                                         $4      
          7        ASSIGN                                                   !1, $4
    6     8        INIT_FCALL                                               'var_dump'
          9        SEND_VAR                                                 !1
         10        DO_ICALL                                                 
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.37 ms | 1398 KiB | 17 Q