3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "http://avenir-voirie.tetraconcept.com/wp-content/uploads/2010/11/IMG_1345-682x1024.jpg"; $pattern = "/(-[0-9]{1,4}x[0-9]{1,4})(\.jpg)/"; echo preg_replace($pattern,'$2',$str);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kK5Vq
function name:  (null)
number of ops:  9
compiled vars:  !0 = $str, !1 = $pattern
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'http%3A%2F%2Favenir-voirie.tetraconcept.com%2Fwp-content%2Fuploads%2F2010%2F11%2FIMG_1345-682x1024.jpg'
    3     1        ASSIGN                                                   !1, '%2F%28-%5B0-9%5D%7B1%2C4%7Dx%5B0-9%5D%7B1%2C4%7D%29%28%5C.jpg%29%2F'
    4     2        INIT_FCALL                                               'preg_replace'
          3        SEND_VAR                                                 !1
          4        SEND_VAL                                                 '%242'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $4      
          7        ECHO                                                     $4
          8      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
175.75 ms | 1394 KiB | 15 Q