3v4l.org

run code in 300+ 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' => 3, // 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);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/3cr4V
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 >   ASSIGN                                                   !0, '5a0a90c7caaa07139c8d1bfd848bda29571157799e2abbafe74065e827c01dd29d30f0f1'
    4     1        ASSIGN                                                   !1, '5a0a90c7caaa07139c8d1bfd848bda29571157799e2abbafe74065e827c01dd29d30f0f1ae3531ac1956aba81cb4f3d4947f9ca99794132989789acb13655645'
    6     2        INIT_FCALL                                               'var_dump'
          3        SEND_VAR                                                 !0
          4        SEND_VAR                                                 !1
          5        DO_ICALL                                                 
    8     6        ASSIGN                                                   !2, <array>
   13     7        INIT_FCALL                                               'password_hash'
          8        SEND_VAR                                                 !0
          9        SEND_VAL                                                 '2y'
         10        SEND_VAR                                                 !2
         11        DO_ICALL                                         $9      
         12        ASSIGN                                                   !3, $9
   14    13        INIT_FCALL                                               'password_hash'
         14        SEND_VAR                                                 !1
         15        SEND_VAL                                                 '2y'
         16        SEND_VAR                                                 !2
         17        DO_ICALL                                         $11     
         18        ASSIGN                                                   !4, $11
   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_IDENTICAL                                     ~14     !3, !4
         25        SEND_VAL                                                 ~14
         26        DO_ICALL                                                 
         27      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.3 ms | 1395 KiB | 17 Q