3v4l.org

run code in 300+ PHP versions simultaneously
<?php $correctPW = '34a124424f065ae13936064ab366d9'; $bad = 'be6759bc425ed7b26c177cf53af82b1ed519'; $hash = password_hash(hash('sha512', $correctPW, true), PASSWORD_BCRYPT); var_dump( password_verify( hash('sha512', $bad, true), $hash ) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2FTaS
function name:  (null)
number of ops:  25
compiled vars:  !0 = $correctPW, !1 = $bad, !2 = $hash
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '34a124424f065ae13936064ab366d9'
    4     1        ASSIGN                                                   !1, 'be6759bc425ed7b26c177cf53af82b1ed519'
    6     2        INIT_FCALL                                               'password_hash'
          3        INIT_FCALL                                               'hash'
          4        SEND_VAL                                                 'sha512'
          5        SEND_VAR                                                 !0
          6        SEND_VAL                                                 <true>
          7        DO_ICALL                                         $5      
          8        SEND_VAR                                                 $5
          9        SEND_VAL                                                 '2y'
         10        DO_ICALL                                         $6      
         11        ASSIGN                                                   !2, $6
    7    12        INIT_FCALL                                               'var_dump'
    8    13        INIT_FCALL                                               'password_verify'
    9    14        INIT_FCALL                                               'hash'
         15        SEND_VAL                                                 'sha512'
         16        SEND_VAR                                                 !1
         17        SEND_VAL                                                 <true>
         18        DO_ICALL                                         $8      
         19        SEND_VAR                                                 $8
   10    20        SEND_VAR                                                 !2
    8    21        DO_ICALL                                         $9      
   10    22        SEND_VAR                                                 $9
    7    23        DO_ICALL                                                 
   12    24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.54 ms | 1462 KiB | 17 Q