3v4l.org

run code in 200+ PHP versions simultaneously
<?php $max_length_bcrypt = '5a0a90c7caaa07139c8d1bfd848bda29571157799e2abbafe74065e827c01dd29d30f0f1'; $max_length_bcrypt_plus_extra = '5a0a90c7caaa07139c8d1bfd848bda29571157799e2abbafe74065e827c01dd29d30f0f1ae3531ac1956aba81cb4f3d4947f9ca99794132989789acb13655645'; var_dump($max_length_bcrypt, $max_length_bcrypt_plus_extra); $hash_options = [ 'salt' => '31c990a8b44218cc483712', // some awful salt 'cost' => 6, // Let's not abuse this wonderful web service (3v4l.org) ]; $hash_1 = password_hash($max_length_bcrypt, PASSWORD_BCRYPT, $hash_options); $hash_2 = password_hash($max_length_bcrypt_plus_extra, PASSWORD_BCRYPT, $hash_options); var_dump($hash_1, $hash_2); var_dump($hash_1 === $hash_2);
based on 3cr4V
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/4lGu3
function name:  (null)
number of ops:  28
compiled vars:  !0 = $max_length_bcrypt, !1 = $max_length_bcrypt_plus_extra, !2 = $hash_options, !3 = $hash_1, !4 = $hash_2
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   3     0  E >   QM_ASSIGN                                                !0
   4     1        QM_ASSIGN                                                !1
   6     2        INIT_FCALL                                               'var_dump'
         3        SEND_VAR                                                 !0
         4        SEND_VAR                                                 !1
         5        DO_ICALL                                                 
   9     6        QM_ASSIGN                                                !2
  13     7        INIT_FCALL                                               'password_hash'
         8        SEND_VAR                                                 !0
         9        SEND_VAL                                                 '2y'
        10        SEND_VAR                                                 !2
        11        DO_ICALL                                         $9      
        12        QM_ASSIGN                                                !3
  14    13        INIT_FCALL                                               'password_hash'
        14        SEND_VAR                                                 !1
        15        SEND_VAL                                                 '2y'
        16        SEND_VAR                                                 !2
        17        DO_ICALL                                         $11     
        18        QM_ASSIGN                                                !4
  16    19        INIT_FCALL                                               'var_dump'
        20        SEND_VAR                                                 !3
        21        SEND_VAR                                                 !4
        22        DO_ICALL                                                 
  17    23        INIT_FCALL                                               'var_dump'
        24        IS_NOT_IDENTICAL                                 ~14     !3, !4
        25        SEND_VAL                                                 ~14
        26        DO_ICALL                                                 
        27      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.4.0