3v4l.org

run code in 300+ PHP versions simultaneously
<?php $password = '+n6p7y499({)EHqvyKz;Dd'; $salt = str_rev('7cc83d7a873d3eaf761dbe903a21b0d4'); $loop = preg_match('/(\d)/', $salt, $m) ? 10 + (int) $m[1] : 10; $encrypted = $password; for ($i = 0; $i < $loop; $i++) { $encrypted = hash('sha512', ($i % 2) ? ($salt . $encrypted) : ($encrypted . $salt)); } echo $encrypted . PHP_EOL . $salt;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 16
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
1 jumps found. (Code = 42) Position 1 = 34
Branch analysis from position: 34
2 jumps found. (Code = 44) Position 1 = 36, Position 2 = 21
Branch analysis from position: 36
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 21
2 jumps found. (Code = 43) Position 1 = 25, Position 2 = 28
Branch analysis from position: 25
1 jumps found. (Code = 42) Position 1 = 30
Branch analysis from position: 30
2 jumps found. (Code = 44) Position 1 = 36, Position 2 = 21
Branch analysis from position: 36
Branch analysis from position: 21
Branch analysis from position: 28
2 jumps found. (Code = 44) Position 1 = 36, Position 2 = 21
Branch analysis from position: 36
Branch analysis from position: 21
Branch analysis from position: 16
1 jumps found. (Code = 42) Position 1 = 34
Branch analysis from position: 34
filename:       /in/BfuHT
function name:  (null)
number of ops:  40
compiled vars:  !0 = $password, !1 = $salt, !2 = $loop, !3 = $m, !4 = $encrypted, !5 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%2Bn6p7y499%28%7B%29EHqvyKz%3BDd'
    3     1        INIT_FCALL_BY_NAME                                       'str_rev'
          2        SEND_VAL_EX                                              '7cc83d7a873d3eaf761dbe903a21b0d4'
          3        DO_FCALL                                      0  $7      
          4        ASSIGN                                                   !1, $7
    4     5        INIT_FCALL                                               'preg_match'
          6        SEND_VAL                                                 '%2F%28%5Cd%29%2F'
          7        SEND_VAR                                                 !1
          8        SEND_REF                                                 !3
          9        DO_ICALL                                         $9      
         10      > JMPZ                                                     $9, ->16
         11    >   FETCH_DIM_R                                      ~10     !3, 1
         12        CAST                                          4  ~11     ~10
         13        ADD                                              ~12     10, ~11
         14        QM_ASSIGN                                        ~13     ~12
         15      > JMP                                                      ->17
         16    >   QM_ASSIGN                                        ~13     10
         17    >   ASSIGN                                                   !2, ~13
    6    18        ASSIGN                                                   !4, !0
    7    19        ASSIGN                                                   !5, 0
         20      > JMP                                                      ->34
    8    21    >   INIT_FCALL                                               'hash'
         22        SEND_VAL                                                 'sha512'
         23        MOD                                              ~17     !5, 2
         24      > JMPZ                                                     ~17, ->28
         25    >   CONCAT                                           ~18     !1, !4
         26        QM_ASSIGN                                        ~19     ~18
         27      > JMP                                                      ->30
         28    >   CONCAT                                           ~20     !4, !1
         29        QM_ASSIGN                                        ~19     ~20
         30    >   SEND_VAL                                                 ~19
         31        DO_ICALL                                         $21     
         32        ASSIGN                                                   !4, $21
    7    33        PRE_INC                                                  !5
         34    >   IS_SMALLER                                               !5, !2
         35      > JMPNZ                                                    ~24, ->21
   11    36    >   CONCAT                                           ~25     !4, '%0A'
         37        CONCAT                                           ~26     ~25, !1
         38        ECHO                                                     ~26
         39      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
180.98 ms | 1405 KiB | 17 Q