3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.84 ms | 1013 KiB | 17 Q