3v4l.org

run code in 300+ PHP versions simultaneously
<?php function encryptPassword($password) { $encryptedPassword = md5($password).md5("MOOYOUL"); // SHA1 암호화하고 Base64로 Encode한걸 또 다시 SHA1로 암호화 $encryptedPassword = sha1(sha1(sha1($encryptedPassword, true), true), false).sha1("MOOYOUL").sha1("merong"); return $encryptedPassword; } $original = "password"; $encrypted = encryptPassword($original); var_dump($original, $encrypted);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/833ii
function name:  (null)
number of ops:  10
compiled vars:  !0 = $original, !1 = $encrypted
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   ASSIGN                                                   !0, 'password'
   13     1        INIT_FCALL                                               'encryptpassword'
          2        SEND_VAR                                                 !0
          3        DO_FCALL                                      0  $3      
          4        ASSIGN                                                   !1, $3
   15     5        INIT_FCALL                                               'var_dump'
          6        SEND_VAR                                                 !0
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                                 
          9      > RETURN                                                   1

Function encryptpassword:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/833ii
function name:  encryptPassword
number of ops:  32
compiled vars:  !0 = $password, !1 = $encryptedPassword
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    5     1        INIT_FCALL                                               'md5'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $2      
          4        INIT_FCALL                                               'md5'
          5        SEND_VAL                                                 'MOOYOUL'
          6        DO_ICALL                                         $3      
          7        CONCAT                                           ~4      $2, $3
          8        ASSIGN                                                   !1, ~4
    6     9        INIT_FCALL                                               'sha1'
         10        INIT_FCALL                                               'sha1'
         11        INIT_FCALL                                               'sha1'
         12        SEND_VAR                                                 !1
         13        SEND_VAL                                                 <true>
         14        DO_ICALL                                         $6      
         15        SEND_VAR                                                 $6
         16        SEND_VAL                                                 <true>
         17        DO_ICALL                                         $7      
         18        SEND_VAR                                                 $7
         19        SEND_VAL                                                 <false>
         20        DO_ICALL                                         $8      
         21        INIT_FCALL                                               'sha1'
         22        SEND_VAL                                                 'MOOYOUL'
         23        DO_ICALL                                         $9      
         24        CONCAT                                           ~10     $8, $9
         25        INIT_FCALL                                               'sha1'
         26        SEND_VAL                                                 'merong'
         27        DO_ICALL                                         $11     
         28        CONCAT                                           ~12     ~10, $11
         29        ASSIGN                                                   !1, ~12
    7    30      > RETURN                                                   !1
    8    31*     > RETURN                                                   null

End of function encryptpassword

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.01 ms | 1394 KiB | 20 Q