3v4l.org

run code in 300+ PHP versions simultaneously
<?php $email = 'ExamplePerson+test@Gmail.com'; // Remove email tags, value will become 'ExamplePerson@Gmail.com' $email = preg_replace('/\+[^@]+@/', '@', $email); // Convert uppercase letters, value will become 'exampleperson@gmail.com' $email = strtolower($email); // Add prefix, value will become 'anon-hash:exampleperson@gmail.com' $email = 'anon-hash:'. $email; // Make the hash, value will become '56f1902ef780b12430ae194290057a40' $ahash = md5($email); // Or, in short: $email = 'ExamplePerson+test@Gmail.com'; $bhash = md5('anon-hash:' . strtolower(preg_replace('/\+[^@]+@/', '@', $email))); var_dump($ahash, $bhash);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/MKPBd
function name:  (null)
number of ops:  36
compiled vars:  !0 = $email, !1 = $ahash, !2 = $bhash
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'ExamplePerson%2Btest%40Gmail.com'
    5     1        INIT_FCALL                                               'preg_replace'
          2        SEND_VAL                                                 '%2F%5C%2B%5B%5E%40%5D%2B%40%2F'
          3        SEND_VAL                                                 '%40'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $4      
          6        ASSIGN                                                   !0, $4
    7     7        INIT_FCALL                                               'strtolower'
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                         $6      
         10        ASSIGN                                                   !0, $6
    9    11        CONCAT                                           ~8      'anon-hash%3A', !0
         12        ASSIGN                                                   !0, ~8
   11    13        INIT_FCALL                                               'md5'
         14        SEND_VAR                                                 !0
         15        DO_ICALL                                         $10     
         16        ASSIGN                                                   !1, $10
   14    17        ASSIGN                                                   !0, 'ExamplePerson%2Btest%40Gmail.com'
   15    18        INIT_FCALL                                               'md5'
         19        INIT_FCALL                                               'strtolower'
         20        INIT_FCALL                                               'preg_replace'
         21        SEND_VAL                                                 '%2F%5C%2B%5B%5E%40%5D%2B%40%2F'
         22        SEND_VAL                                                 '%40'
         23        SEND_VAR                                                 !0
         24        DO_ICALL                                         $13     
         25        SEND_VAR                                                 $13
         26        DO_ICALL                                         $14     
         27        CONCAT                                           ~15     'anon-hash%3A', $14
         28        SEND_VAL                                                 ~15
         29        DO_ICALL                                         $16     
         30        ASSIGN                                                   !2, $16
   18    31        INIT_FCALL                                               'var_dump'
         32        SEND_VAR                                                 !1
         33        SEND_VAR                                                 !2
         34        DO_ICALL                                                 
         35      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.4 ms | 1396 KiB | 21 Q