3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo preg_replace('/(?<=^.)[^@]*([^@]{2}@[^.]{2})[^.]*(.\.).*(?=.$)/i','*','example@example.com'); // e****le@ex****e.**m
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/E4BGM
function name:  (null)
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'preg_replace'
          1        SEND_VAL                                                 '%2F%28%3F%3C%3D%5E.%29%5B%5E%40%5D%2A%28%5B%5E%40%5D%7B2%7D%40%5B%5E.%5D%7B2%7D%29%5B%5E.%5D%2A%28.%5C.%29.%2A%28%3F%3D.%24%29%2Fi'
          2        SEND_VAL                                                 '%2A'
          3        SEND_VAL                                                 'example%40example.com'
          4        DO_ICALL                                         $0      
          5        ECHO                                                     $0
    3     6      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.66 ms | 1385 KiB | 15 Q