3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = 'AreplacehereZ@domain.tld'; $pattern = '/[^A-Z]+(?=[^@]*@)/'; $replacement = '*'; $replace = preg_replace($pattern, $replacement, $tring); echo $replace;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lq2ES
function name:  (null)
number of ops:  11
compiled vars:  !0 = $string, !1 = $pattern, !2 = $replacement, !3 = $replace, !4 = $tring
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'AreplacehereZ%40domain.tld'
    3     1        ASSIGN                                                   !1, '%2F%5B%5EA-Z%5D%2B%28%3F%3D%5B%5E%40%5D%2A%40%29%2F'
    4     2        ASSIGN                                                   !2, '%2A'
    6     3        INIT_FCALL                                               'preg_replace'
          4        SEND_VAR                                                 !1
          5        SEND_VAR                                                 !2
          6        SEND_VAR                                                 !4
          7        DO_ICALL                                         $8      
          8        ASSIGN                                                   !3, $8
    7     9        ECHO                                                     !3
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
200.93 ms | 1394 KiB | 15 Q