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"; // 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/WOq0n
function name:  (null)
number of ops:  24
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        NOP                                                      
          9        FAST_CONCAT                                      ~10     'Our%27s%3A+', !2
         10        ECHO                                                     ~10
   13    11        INIT_FCALL                                               'sha1'
         12        SEND_VAR                                                 !0
         13        DO_ICALL                                         $11     
         14        ASSIGN                                                   !3, $11
   14    15        INIT_FCALL                                               'sha1'
         16        CONCAT                                           ~13     !1, !3
         17        SEND_VAL                                                 ~13
         18        DO_ICALL                                         $14     
         19        ASSIGN                                                   !2, $14
   15    20        NOP                                                      
         21        FAST_CONCAT                                      ~16     'Hmac-sha1%3A+', !2
         22        ECHO                                                     ~16
         23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.36 ms | 1395 KiB | 17 Q