3v4l.org

run code in 300+ PHP versions simultaneously
<?php $password="asdaddas"; $salt="asdadd121as"; function encryptPassword($password, $salt) { $pepper = "Ub2SuCfYTfncu4MwUmxH9zINM02uiot2hN5Fycu5"; $hash = sha1(md5(hash('sha512',$pepper.$salt.$password)) . $password . hash('sha256',$salt)); for ($i = 0; $i < 1000; $i++) { $hash = md5($hash); } return $hash; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ToSBe
function name:  (null)
number of ops:  3
compiled vars:  !0 = $password, !1 = $salt
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'asdaddas'
    3     1        ASSIGN                                                   !1, 'asdadd121as'
   11     2      > RETURN                                                   1

Function encryptpassword:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 29
Branch analysis from position: 29
2 jumps found. (Code = 44) Position 1 = 31, Position 2 = 24
Branch analysis from position: 31
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 24
2 jumps found. (Code = 44) Position 1 = 31, Position 2 = 24
Branch analysis from position: 31
Branch analysis from position: 24
filename:       /in/ToSBe
function name:  encryptPassword
number of ops:  33
compiled vars:  !0 = $password, !1 = $salt, !2 = $pepper, !3 = $hash, !4 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    5     2        ASSIGN                                                   !2, 'Ub2SuCfYTfncu4MwUmxH9zINM02uiot2hN5Fycu5'
    6     3        INIT_FCALL                                               'sha1'
          4        INIT_FCALL                                               'md5'
          5        INIT_FCALL                                               'hash'
          6        SEND_VAL                                                 'sha512'
          7        CONCAT                                           ~6      !2, !1
          8        CONCAT                                           ~7      ~6, !0
          9        SEND_VAL                                                 ~7
         10        DO_ICALL                                         $8      
         11        SEND_VAR                                                 $8
         12        DO_ICALL                                         $9      
         13        CONCAT                                           ~10     $9, !0
         14        INIT_FCALL                                               'hash'
         15        SEND_VAL                                                 'sha256'
         16        SEND_VAR                                                 !1
         17        DO_ICALL                                         $11     
         18        CONCAT                                           ~12     ~10, $11
         19        SEND_VAL                                                 ~12
         20        DO_ICALL                                         $13     
         21        ASSIGN                                                   !3, $13
    7    22        ASSIGN                                                   !4, 0
         23      > JMP                                                      ->29
    8    24    >   INIT_FCALL                                               'md5'
         25        SEND_VAR                                                 !3
         26        DO_ICALL                                         $16     
         27        ASSIGN                                                   !3, $16
    7    28        PRE_INC                                                  !4
         29    >   IS_SMALLER                                               !4, 1000
         30      > JMPNZ                                                    ~19, ->24
   10    31    > > RETURN                                                   !3
   11    32*     > RETURN                                                   null

End of function encryptpassword

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.04 ms | 1400 KiB | 19 Q