3v4l.org

run code in 300+ PHP versions simultaneously
<?php $password = "thisismypassword"; $salt = "SaltyMotherFucker"; // Our hashing method: $hash = md5($salt . ":" . $password); echo "Our's: $hash\n"; // Hmac - sha1 $hash = hash_hmac('sha1', hash_hmac('sha256',$password,$salt), $salt); echo "Hmac-sha1: $hash";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lKTNs
function name:  (null)
number of ops:  27
compiled vars:  !0 = $password, !1 = $salt, !2 = $hash
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'thisismypassword'
    4     1        ASSIGN                                                   !1, 'SaltyMotherFucker'
    8     2        INIT_FCALL                                               'md5'
          3        CONCAT                                           ~5      !1, '%3A'
          4        CONCAT                                           ~6      ~5, !0
          5        SEND_VAL                                                 ~6
          6        DO_ICALL                                         $7      
          7        ASSIGN                                                   !2, $7
    9     8        ROPE_INIT                                     3  ~10     'Our%27s%3A+'
          9        ROPE_ADD                                      1  ~10     ~10, !2
         10        ROPE_END                                      2  ~9      ~10, '%0A'
         11        ECHO                                                     ~9
   13    12        INIT_FCALL                                               'hash_hmac'
         13        SEND_VAL                                                 'sha1'
         14        INIT_FCALL                                               'hash_hmac'
         15        SEND_VAL                                                 'sha256'
         16        SEND_VAR                                                 !0
         17        SEND_VAR                                                 !1
         18        DO_ICALL                                         $12     
         19        SEND_VAR                                                 $12
         20        SEND_VAR                                                 !1
         21        DO_ICALL                                         $13     
         22        ASSIGN                                                   !2, $13
   14    23        NOP                                                      
         24        FAST_CONCAT                                      ~15     'Hmac-sha1%3A+', !2
         25        ECHO                                                     ~15
         26      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.08 ms | 1395 KiB | 17 Q