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); $hash557c10 = '$2y$10$fe3sFe8zFWYoeqnX6fy22O0W1tzsl7cV61rTa9pkYF85a68r0ZbK2'; $verified557 = password_verify('mypass', $hash557); var_dump($verified557);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1KLHD
function name:  (null)
number of ops:  28
compiled vars:  !0 = $option, !1 = $hashed, !2 = $verified, !3 = $hash557c10, !4 = $verified557, !5 = $hash557
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                                         $7      
          6        ASSIGN                                                   !1, $7
    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                                         $10     
         14        ASSIGN                                                   !2, $10
    7    15        INIT_FCALL                                               'var_dump'
         16        SEND_VAR                                                 !2
         17        DO_ICALL                                                 
    8    18        ASSIGN                                                   !3, '%242y%2410%24fe3sFe8zFWYoeqnX6fy22O0W1tzsl7cV61rTa9pkYF85a68r0ZbK2'
    9    19        INIT_FCALL                                               'password_verify'
         20        SEND_VAL                                                 'mypass'
         21        SEND_VAR                                                 !5
         22        DO_ICALL                                         $14     
         23        ASSIGN                                                   !4, $14
   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:
152.01 ms | 1395 KiB | 19 Q