3v4l.org

run code in 300+ PHP versions simultaneously
<?php // use this to create the hash then delete it. //echo password_hash("thepassword", PASSWORD_DEFAULT); // paste hash here $passwordKey = '$2y$10$j33UPA7gNxSOBsXQcyquLOZRuO6X8k8hZOb1RA79iN8gLlqp9eIPO'; $userInputGood = "thepassword"; $userInputBad = "notthepassword"; if (password_verify($userInputGood, $passwordKey)) echo "correct "; else echo "incorrect"; if (password_verify($userInputBad, $passwordKey)) echo "correct "; else echo "incorrect";
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 10
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
2 jumps found. (Code = 43) Position 1 = 16, Position 2 = 18
Branch analysis from position: 16
1 jumps found. (Code = 42) Position 1 = 19
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
2 jumps found. (Code = 43) Position 1 = 16, Position 2 = 18
Branch analysis from position: 16
Branch analysis from position: 18
filename:       /in/PknTI
function name:  (null)
number of ops:  20
compiled vars:  !0 = $passwordKey, !1 = $userInputGood, !2 = $userInputBad
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   ASSIGN                                                   !0, '%242y%2410%24j33UPA7gNxSOBsXQcyquLOZRuO6X8k8hZOb1RA79iN8gLlqp9eIPO'
    8     1        ASSIGN                                                   !1, 'thepassword'
    9     2        ASSIGN                                                   !2, 'notthepassword'
   11     3        INIT_FCALL                                               'password_verify'
          4        SEND_VAR                                                 !1
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $6      
          7      > JMPZ                                                     $6, ->10
   12     8    >   ECHO                                                     'correct+'
   11     9      > JMP                                                      ->11
   13    10    >   ECHO                                                     'incorrect'
   15    11    >   INIT_FCALL                                               'password_verify'
         12        SEND_VAR                                                 !2
         13        SEND_VAR                                                 !0
         14        DO_ICALL                                         $7      
         15      > JMPZ                                                     $7, ->18
   16    16    >   ECHO                                                     'correct+'
   15    17      > JMP                                                      ->19
   17    18    >   ECHO                                                     'incorrect'
         19    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.74 ms | 1010 KiB | 14 Q