3v4l.org

run code in 300+ PHP versions simultaneously
<?php $crypt = crypt('rasmuslerdorf', '$2y$07$usesomesillystringforsalt$'); $password_hash = password_hash('rasmuslerdorf'); // werkt tot er een PHP versie is die de waarde van PASSWORD_DEFAULT veranderd var_dump( password_verify('rasmuslerdorf', $crypt), // ik gebruik password_hash() en crypt() door elkaar! crypt('rasmuslerdorf', $password_hash) == $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/E2W0C
function name:  (null)
number of ops:  23
compiled vars:  !0 = $crypt, !1 = $password_hash
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                                         $2      
          4        ASSIGN                                                   !0, $2
    4     5        INIT_FCALL                                               'password_hash'
          6        SEND_VAL                                                 'rasmuslerdorf'
          7        DO_ICALL                                         $4      
          8        ASSIGN                                                   !1, $4
    6     9        INIT_FCALL                                               'var_dump'
    7    10        INIT_FCALL                                               'password_verify'
         11        SEND_VAL                                                 'rasmuslerdorf'
         12        SEND_VAR                                                 !0
         13        DO_ICALL                                         $6      
         14        SEND_VAR                                                 $6
    9    15        INIT_FCALL                                               'crypt'
         16        SEND_VAL                                                 'rasmuslerdorf'
         17        SEND_VAR                                                 !1
         18        DO_ICALL                                         $7      
         19        IS_EQUAL                                         ~8      !1, $7
         20        SEND_VAL                                                 ~8
         21        DO_ICALL                                                 
   10    22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.78 ms | 1395 KiB | 21 Q