3v4l.org

run code in 300+ PHP versions simultaneously
<?php $option = array('cost' => 10); $hashed =password_hash('mypass', PASSWORD_BCRYPT, $option); var_dump( $hashed); $verified = password_verify('mypass', $hashed); var_dump($verified); $hash575 = '2y$10$7g0dITY7XbtoejJ9edgpi.ZpnBCNR1apCA94AmDT58yDtXOVzzG/6'; $verified575 = password_verify('mypass', $hash575); var_dump($verified575);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/EDSSs
function name:  (null)
number of ops:  28
compiled vars:  !0 = $option, !1 = $hashed, !2 = $verified, !3 = $hash575, !4 = $verified575
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        INIT_FCALL                                               'password_hash'
          2        SEND_VAL                                                 'mypass'
          3        SEND_VAL                                                 '2y'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $6      
          6        ASSIGN                                                   !1, $6
    4     7        INIT_FCALL                                               'var_dump'
          8        SEND_VAR                                                 !1
          9        DO_ICALL                                                 
    6    10        INIT_FCALL                                               'password_verify'
         11        SEND_VAL                                                 'mypass'
         12        SEND_VAR                                                 !1
         13        DO_ICALL                                         $9      
         14        ASSIGN                                                   !2, $9
    7    15        INIT_FCALL                                               'var_dump'
         16        SEND_VAR                                                 !2
         17        DO_ICALL                                                 
    8    18        ASSIGN                                                   !3, '2y%2410%247g0dITY7XbtoejJ9edgpi.ZpnBCNR1apCA94AmDT58yDtXOVzzG%2F6'
    9    19        INIT_FCALL                                               'password_verify'
         20        SEND_VAL                                                 'mypass'
         21        SEND_VAR                                                 !3
         22        DO_ICALL                                         $13     
         23        ASSIGN                                                   !4, $13
   10    24        INIT_FCALL                                               'var_dump'
         25        SEND_VAR                                                 !4
         26        DO_ICALL                                                 
         27      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.58 ms | 940 KiB | 20 Q