3v4l.org

run code in 300+ PHP versions simultaneously
<?php $crypt = crypt('rasmuslerdorf', '$2y$07$usesomesillystringforsalt$'); // $2y$ geeft aan dat Bcrypt gebruikt moet worden $password_hash = password_hash('rasmuslerdorf', PASSWORD_BCRYPT); 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/TDquK
function name:  (null)
number of ops:  28
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        SEND_VAL                                                 '2y'
          8        DO_ICALL                                         $5      
          9        ASSIGN                                                   !1, $5
    6    10        INIT_FCALL                                               'var_dump'
    7    11        SEND_VAR                                                 !0
    8    12        SEND_VAR                                                 !1
    9    13        INIT_FCALL                                               'password_verify'
         14        SEND_VAL                                                 'rasmuslerdorf'
         15        SEND_VAR                                                 !0
         16        DO_ICALL                                         $7      
         17        SEND_VAR                                                 $7
   11    18        INIT_FCALL                                               'crypt'
         19        SEND_VAL                                                 'rasmuslerdorf'
         20        SEND_VAR                                                 !1
         21        DO_ICALL                                         $8      
         22        ASSIGN                                           ~9      !2, $8
         23        SEND_VAL                                                 ~9
   12    24        IS_EQUAL                                         ~10     !2, !1
         25        SEND_VAL                                                 ~10
         26        DO_ICALL                                                 
   13    27      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.83 ms | 1395 KiB | 21 Q