3v4l.org

run code in 500+ PHP versions simultaneously
<?php $re = '/(?:\G(?!\A)|^\+)[^+]*\K\+/m'; $str = '+49+12423#23492@aosd#+dasd'; echo preg_replace($re, '', $str);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/q4k6U
function name:  (null)
number of ops:  6
compiled vars:  !0 = $re, !1 = $str
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, '%2F%28%3F%3A%5CG%28%3F%21%5CA%29%7C%5E%5C%2B%29%5B%5E%2B%5D%2A%5CK%5C%2B%2Fm'
    4     1        ASSIGN                                                       !1, '%2B49%2B12423%2323492%40aosd%23%2Bdasd'
    5     2        FRAMELESS_ICALL_3                preg_replace        ~4      !0, ''
          3        OP_DATA                                                      !1
          4        ECHO                                                         ~4
          5      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
219.7 ms | 1419 KiB | 8 Q