3v4l.org

run code in 500+ PHP versions simultaneously
<?php $mail = "Test@test.com"; preg_match("/(.)(.*?)@(.*)/", $mail, $Match); $str = $Match[1] . str_pad("", strlen($Match[2]), "*"). "@" . str_pad("", strlen($Match[3]), "*"); echo $str;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/dvYpT
function name:  (null)
number of ops:  27
compiled vars:  !0 = $mail, !1 = $Match, !2 = $str
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, 'Test%40test.com'
    5     1        INIT_FCALL                                                   'preg_match'
          2        SEND_VAL                                                     '%2F%28.%29%28.%2A%3F%29%40%28.%2A%29%2F'
          3        SEND_VAR                                                     !0
          4        SEND_REF                                                     !1
          5        DO_ICALL                                                     
    7     6        FETCH_DIM_R                                          ~5      !1, 1
          7        INIT_FCALL                                                   'str_pad'
          8        SEND_VAL                                                     ''
          9        FETCH_DIM_R                                          ~6      !1, 2
         10        STRLEN                                               ~7      ~6
         11        SEND_VAL                                                     ~7
         12        SEND_VAL                                                     '%2A'
         13        DO_ICALL                                             $8      
         14        CONCAT                                               ~9      ~5, $8
         15        CONCAT                                               ~10     ~9, '%40'
         16        INIT_FCALL                                                   'str_pad'
         17        SEND_VAL                                                     ''
         18        FETCH_DIM_R                                          ~11     !1, 3
         19        STRLEN                                               ~12     ~11
         20        SEND_VAL                                                     ~12
         21        SEND_VAL                                                     '%2A'
         22        DO_ICALL                                             $13     
         23        CONCAT                                               ~14     ~10, $13
         24        ASSIGN                                                       !2, ~14
    8    25        ECHO                                                         !2
         26      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
168.17 ms | 2108 KiB | 15 Q