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 $hmac = sha1($password); $hash = sha1($salt | $password); echo $salt | $password; echo "Hmac-sha1: $hash";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/6R13O
function name:  (null)
number of ops:  27
compiled vars:  !0 = $password, !1 = $salt, !2 = $hash, !3 = $hmac
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                                           ~6      !1, '%3A'
          4        CONCAT                                           ~7      ~6, !0
          5        SEND_VAL                                                 ~7
          6        DO_ICALL                                         $8      
          7        ASSIGN                                                   !2, $8
    9     8        ROPE_INIT                                     3  ~11     'Our%27s%3A+'
          9        ROPE_ADD                                      1  ~11     ~11, !2
         10        ROPE_END                                      2  ~10     ~11, '%0A'
         11        ECHO                                                     ~10
   14    12        INIT_FCALL                                               'sha1'
         13        SEND_VAR                                                 !0
         14        DO_ICALL                                         $13     
         15        ASSIGN                                                   !3, $13
   15    16        INIT_FCALL                                               'sha1'
         17        BW_OR                                            ~15     !1, !0
         18        SEND_VAL                                                 ~15
         19        DO_ICALL                                         $16     
         20        ASSIGN                                                   !2, $16
   16    21        BW_OR                                            ~18     !1, !0
         22        ECHO                                                     ~18
   17    23        NOP                                                      
         24        FAST_CONCAT                                      ~19     'Hmac-sha1%3A+', !2
         25        ECHO                                                     ~19
         26      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.46 ms | 1395 KiB | 17 Q