3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.49 ms | 1396 KiB | 17 Q