3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input = 'correct-password'; $hash_from_crypt = crypt($input, '$1$$'); # correct var_dump(password_verify($input, $hash_from_crypt)); # wrong var_dump(password_verify('wrong-password', $hash_from_crypt));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Ll8iL
function name:  (null)
number of ops:  21
compiled vars:  !0 = $input, !1 = $hash_from_crypt
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'correct-password'
    5     1        INIT_FCALL                                               'crypt'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 '%241%24%24'
          4        DO_ICALL                                         $3      
          5        ASSIGN                                                   !1, $3
   10     6        INIT_FCALL                                               'var_dump'
          7        INIT_FCALL                                               'password_verify'
          8        SEND_VAR                                                 !0
          9        SEND_VAR                                                 !1
         10        DO_ICALL                                         $5      
         11        SEND_VAR                                                 $5
         12        DO_ICALL                                                 
   13    13        INIT_FCALL                                               'var_dump'
         14        INIT_FCALL                                               'password_verify'
         15        SEND_VAL                                                 'wrong-password'
         16        SEND_VAR                                                 !1
         17        DO_ICALL                                         $7      
         18        SEND_VAR                                                 $7
         19        DO_ICALL                                                 
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.35 ms | 1399 KiB | 19 Q