3v4l.org

run code in 300+ PHP versions simultaneously
<?php $setting = '$2y$04$'; $salt = '1234567890123456789012'; // SAME SALT FOR ALL PASSWORDS, OMG, DON'T $str = '12345678901234567890123456789012345678901234567890123456789012345678901'; $passwd1 = $str . 'A'; $passwd2 = $str . 'E'; $hash1 = crypt($passwd1, $setting . $salt); $hash2 = crypt($passwd2, $setting . $salt); echo ($hash1 === $hash2 ? 'same' : 'unique');
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 21, Position 2 = 23
Branch analysis from position: 21
1 jumps found. (Code = 42) Position 1 = 24
Branch analysis from position: 24
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 23
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hMp4R
function name:  (null)
number of ops:  26
compiled vars:  !0 = $setting, !1 = $salt, !2 = $str, !3 = $passwd1, !4 = $passwd2, !5 = $hash1, !6 = $hash2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%242y%2404%24'
    3     1        ASSIGN                                                   !1, '1234567890123456789012'
    4     2        ASSIGN                                                   !2, '12345678901234567890123456789012345678901234567890123456789012345678901'
    6     3        CONCAT                                           ~10     !2, 'A'
          4        ASSIGN                                                   !3, ~10
    7     5        CONCAT                                           ~12     !2, 'E'
          6        ASSIGN                                                   !4, ~12
    8     7        INIT_FCALL                                               'crypt'
          8        SEND_VAR                                                 !3
          9        CONCAT                                           ~14     !0, !1
         10        SEND_VAL                                                 ~14
         11        DO_ICALL                                         $15     
         12        ASSIGN                                                   !5, $15
    9    13        INIT_FCALL                                               'crypt'
         14        SEND_VAR                                                 !4
         15        CONCAT                                           ~17     !0, !1
         16        SEND_VAL                                                 ~17
         17        DO_ICALL                                         $18     
         18        ASSIGN                                                   !6, $18
   11    19        IS_IDENTICAL                                             !5, !6
         20      > JMPZ                                                     ~20, ->23
         21    >   QM_ASSIGN                                        ~21     'same'
         22      > JMP                                                      ->24
         23    >   QM_ASSIGN                                        ~21     'unique'
         24    >   ECHO                                                     ~21
         25      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.58 ms | 1395 KiB | 15 Q