3v4l.org

run code in 300+ PHP versions simultaneously
<?php $hash = "{SSHA}j/r2/pEsrmd2fQUkcJ2wDkqhrK9hLmNvbDIxMDY="; $password = "&'(-_)=~#{[|`\^@]}"; $salt = substr(base64_decode(substr($hash,6)),20); echo $salt."\n"; $encrypted_password = '{SSHA}' . base64_encode(sha1( $password.$salt, TRUE ). $salt); echo $encrypted_password."\n"; vardump($encrypted_password == $hash);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/LZ9t3
function name:  (null)
number of ops:  34
compiled vars:  !0 = $hash, !1 = $password, !2 = $salt, !3 = $encrypted_password
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%7BSSHA%7Dj%2Fr2%2FpEsrmd2fQUkcJ2wDkqhrK9hLmNvbDIxMDY%3D'
    4     1        ASSIGN                                                   !1, '%26%27%28-_%29%3D%7E%23%7B%5B%7C%60%5C%5E%40%5D%7D'
    5     2        INIT_FCALL                                               'substr'
          3        INIT_FCALL                                               'base64_decode'
          4        INIT_FCALL                                               'substr'
          5        SEND_VAR                                                 !0
          6        SEND_VAL                                                 6
          7        DO_ICALL                                         $6      
          8        SEND_VAR                                                 $6
          9        DO_ICALL                                         $7      
         10        SEND_VAR                                                 $7
         11        SEND_VAL                                                 20
         12        DO_ICALL                                         $8      
         13        ASSIGN                                                   !2, $8
    6    14        CONCAT                                           ~10     !2, '%0A'
         15        ECHO                                                     ~10
    7    16        INIT_FCALL                                               'base64_encode'
         17        INIT_FCALL                                               'sha1'
         18        CONCAT                                           ~11     !1, !2
         19        SEND_VAL                                                 ~11
         20        SEND_VAL                                                 <true>
         21        DO_ICALL                                         $12     
         22        CONCAT                                           ~13     $12, !2
         23        SEND_VAL                                                 ~13
         24        DO_ICALL                                         $14     
         25        CONCAT                                           ~15     '%7BSSHA%7D', $14
         26        ASSIGN                                                   !3, ~15
    8    27        CONCAT                                           ~17     !3, '%0A'
         28        ECHO                                                     ~17
   10    29        INIT_FCALL_BY_NAME                                       'vardump'
         30        IS_EQUAL                                         ~18     !3, !0
         31        SEND_VAL_EX                                              ~18
         32        DO_FCALL                                      0          
         33      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.28 ms | 1396 KiB | 21 Q