3v4l.org

run code in 300+ PHP versions simultaneously
<?php $subject = 'http://distilleryimage3_s3_amazonaws_com/8af11cdcf11e286b022000ae90285_7_jpg'; $pattern = '/(_)([^7])/'; var_dump(preg_replace($pattern, '.\2', $subject));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/OQNeA
function name:  (null)
number of ops:  11
compiled vars:  !0 = $subject, !1 = $pattern
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'http%3A%2F%2Fdistilleryimage3_s3_amazonaws_com%2F8af11cdcf11e286b022000ae90285_7_jpg'
    3     1        ASSIGN                                                   !1, '%2F%28_%29%28%5B%5E7%5D%29%2F'
    6     2        INIT_FCALL                                               'var_dump'
          3        INIT_FCALL                                               'preg_replace'
          4        SEND_VAR                                                 !1
          5        SEND_VAL                                                 '.%5C2'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $4      
          8        SEND_VAR                                                 $4
          9        DO_ICALL                                                 
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.44 ms | 1394 KiB | 17 Q