3v4l.org

run code in 500+ PHP versions simultaneously
<?php $password = 'Pa$$virgo78'; $salt = "a1b2c3d4e5f67890123456789abcdef012345678"; // Le salt généré à l'étape 1 $hash = sha1($salt . sha1($password)); echo "Hash : " . $hash;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/6Fcpa
function name:  (null)
number of ops:  13
compiled vars:  !0 = $password, !1 = $salt, !2 = $hash
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, 'Pa%24%24virgo78'
    4     1        ASSIGN                                                       !1, 'a1b2c3d4e5f67890123456789abcdef012345678'
    6     2        INIT_FCALL                                                   'sha1'
          3        INIT_FCALL                                                   'sha1'
          4        SEND_VAR                                                     !0
          5        DO_ICALL                                             $5      
          6        CONCAT                                               ~6      !1, $5
          7        SEND_VAL                                                     ~6
          8        DO_ICALL                                             $7      
          9        ASSIGN                                                       !2, $7
    7    10        CONCAT                                               ~9      'Hash+%3A+', !2
         11        ECHO                                                         ~9
    8    12      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
128.96 ms | 481 KiB | 9 Q