3v4l.org

run code in 300+ PHP versions simultaneously
<?php $password = "password"; $iterations = 1000; // Generate a random IV using mcrypt_create_iv(), // openssl_random_pseudo_bytes() or another suitable source of randomness $salt = mcrypt_create_iv(16, MCRYPT_DEV_URANDOM); $hash = hash_pbkdf2("sha256", $password, $salt, $iterations, 20); echo $hash; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/TV7eA
function name:  (null)
number of ops:  18
compiled vars:  !0 = $password, !1 = $iterations, !2 = $salt, !3 = $hash
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'password'
    3     1        ASSIGN                                                   !1, 1000
    7     2        INIT_FCALL_BY_NAME                                       'mcrypt_create_iv'
          3        SEND_VAL_EX                                              16
          4        FETCH_CONSTANT                                   ~6      'MCRYPT_DEV_URANDOM'
          5        SEND_VAL_EX                                              ~6
          6        DO_FCALL                                      0  $7      
          7        ASSIGN                                                   !2, $7
    9     8        INIT_FCALL                                               'hash_pbkdf2'
          9        SEND_VAL                                                 'sha256'
         10        SEND_VAR                                                 !0
         11        SEND_VAR                                                 !2
         12        SEND_VAR                                                 !1
         13        SEND_VAL                                                 20
         14        DO_ICALL                                         $9      
         15        ASSIGN                                                   !3, $9
   10    16        ECHO                                                     !3
   11    17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.32 ms | 1394 KiB | 15 Q