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',$password,$salt); echo "Hmac-sha1: $hash";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/HKgY2
function name:  (null)
number of ops:  22
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        SEND_VAR                                                 !0
         15        SEND_VAR                                                 !1
         16        DO_ICALL                                         $12     
         17        ASSIGN                                                   !2, $12
   14    18        NOP                                                      
         19        FAST_CONCAT                                      ~14     'Hmac-sha1%3A+', !2
         20        ECHO                                                     ~14
         21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.75 ms | 1386 KiB | 17 Q