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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.57 ms | 1395 KiB | 17 Q