3v4l.org

run code in 300+ PHP versions simultaneously
<?php $pattern = "/^[a-zA-Z0-9._-]+@[a-zA-Z0-9-]+\.[a-zA-Z.]{2,5}$/"; $pattern = "/^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,4})$/"; $replacement = "**************"; echo preg_replace($pattern, $replacement, "I want to replace this.is@an.email.address with stars");
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7B3Ea
function name:  (null)
number of ops:  10
compiled vars:  !0 = $pattern, !1 = $replacement
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%2F%5E%5Ba-zA-Z0-9._-%5D%2B%40%5Ba-zA-Z0-9-%5D%2B%5C.%5Ba-zA-Z.%5D%7B2%2C5%7D%24%2F'
    4     1        ASSIGN                                                   !0, '%2F%5E%5B_a-z0-9-%5D%2B%28%5C.%5B_a-z0-9-%5D%2B%29%2A%40%5Ba-z0-9-%5D%2B%28%5C.%5Ba-z0-9-%5D%2B%29%2A%28%5C.%5Ba-z%5D%7B2%2C4%7D%29%24%2F'
    5     2        ASSIGN                                                   !1, '%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A'
    6     3        INIT_FCALL                                               'preg_replace'
          4        SEND_VAR                                                 !0
          5        SEND_VAR                                                 !1
          6        SEND_VAL                                                 'I+want+to+replace+this.is%40an.email.address+with+stars'
          7        DO_ICALL                                         $5      
          8        ECHO                                                     $5
          9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.09 ms | 1394 KiB | 15 Q