3v4l.org

run code in 500+ PHP versions simultaneously
<?php $email = "example@example.com"; $password = "abcabc"; $iterations = 100000; $master_key = hash_pbkdf2('sha256', $password, $email, $iterations, 0, true); $master_hash = hash_pbkdf2('sha256', $master_key, $password, 1, 0, true); echo "Master Key:\n"; echo(base64_encode($master_key)); echo "\nMaster Hash:\n"; echo(base64_encode($master_hash));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/q7rZm
function name:  (null)
number of ops:  32
compiled vars:  !0 = $email, !1 = $password, !2 = $iterations, !3 = $master_key, !4 = $master_hash
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                       !0, 'example%40example.com'
    3     1        ASSIGN                                                       !1, 'abcabc'
    4     2        ASSIGN                                                       !2, 100000
    6     3        INIT_FCALL                                                   'hash_pbkdf2'
          4        SEND_VAL                                                     'sha256'
          5        SEND_VAR                                                     !1
          6        SEND_VAR                                                     !0
          7        SEND_VAR                                                     !2
          8        SEND_VAL                                                     0
          9        SEND_VAL                                                     <true>
         10        DO_ICALL                                             $8      
         11        ASSIGN                                                       !3, $8
    7    12        INIT_FCALL                                                   'hash_pbkdf2'
         13        SEND_VAL                                                     'sha256'
         14        SEND_VAR                                                     !3
         15        SEND_VAR                                                     !1
         16        SEND_VAL                                                     1
         17        SEND_VAL                                                     0
         18        SEND_VAL                                                     <true>
         19        DO_ICALL                                             $10     
         20        ASSIGN                                                       !4, $10
    9    21        ECHO                                                         'Master+Key%3A%0A'
   10    22        INIT_FCALL                                                   'base64_encode'
         23        SEND_VAR                                                     !3
         24        DO_ICALL                                             $12     
         25        ECHO                                                         $12
   12    26        ECHO                                                         '%0AMaster+Hash%3A%0A'
   13    27        INIT_FCALL                                                   'base64_encode'
         28        SEND_VAR                                                     !4
         29        DO_ICALL                                             $13     
         30        ECHO                                                         $13
         31      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
158.09 ms | 1785 KiB | 15 Q