3v4l.org

run code in 300+ PHP versions simultaneously
<?php $crypt = crypt('rasmuslerdorf', '$2y$07$usesomesillystringforsalt$'); $password_hash = password_hash('rasmuslerdorf', PASSWORD_BLOWFISH); var_dump( $crypt, $password_hash, password_verify('rasmuslerdorf', $crypt), // ik gebruik password_hash() en crypt() door elkaar! $verify = crypt('rasmuslerdorf', $password_hash), $verify == $password_hash // nu doe ik het nog een keer! );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Fh3TC
function name:  (null)
number of ops:  29
compiled vars:  !0 = $crypt, !1 = $password_hash, !2 = $verify
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'crypt'
          1        SEND_VAL                                                 'rasmuslerdorf'
          2        SEND_VAL                                                 '%242y%2407%24usesomesillystringforsalt%24'
          3        DO_ICALL                                         $3      
          4        ASSIGN                                                   !0, $3
    4     5        INIT_FCALL                                               'password_hash'
          6        SEND_VAL                                                 'rasmuslerdorf'
          7        FETCH_CONSTANT                                   ~5      'PASSWORD_BLOWFISH'
          8        SEND_VAL                                                 ~5
          9        DO_ICALL                                         $6      
         10        ASSIGN                                                   !1, $6
    6    11        INIT_FCALL                                               'var_dump'
    7    12        SEND_VAR                                                 !0
    8    13        SEND_VAR                                                 !1
    9    14        INIT_FCALL                                               'password_verify'
         15        SEND_VAL                                                 'rasmuslerdorf'
         16        SEND_VAR                                                 !0
         17        DO_ICALL                                         $8      
         18        SEND_VAR                                                 $8
   11    19        INIT_FCALL                                               'crypt'
         20        SEND_VAL                                                 'rasmuslerdorf'
         21        SEND_VAR                                                 !1
         22        DO_ICALL                                         $9      
         23        ASSIGN                                           ~10     !2, $9
         24        SEND_VAL                                                 ~10
   12    25        IS_EQUAL                                         ~11     !2, !1
         26        SEND_VAL                                                 ~11
         27        DO_ICALL                                                 
   13    28      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.81 ms | 1395 KiB | 21 Q