3v4l.org

run code in 300+ PHP versions simultaneously
<?php $password = 'teste'; $hash = password_hash($password, PASSWORD_BCRYPT, array('cost' => 12)); echo $hash . "\r\n"; # $2y$10$PwbhVaqzuUSl5wSdi.iCK.RBz5pQp/a.6lRdSRttY8s2qs7dn5hTq $verified = password_verify($password, $hash); var_dump($verified);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/dM26M
function name:  (null)
number of ops:  18
compiled vars:  !0 = $password, !1 = $hash, !2 = $verified
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'teste'
    3     1        INIT_FCALL                                               'password_hash'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 '2y'
          4        SEND_VAL                                                 <array>
          5        DO_ICALL                                         $4      
          6        ASSIGN                                                   !1, $4
    4     7        CONCAT                                           ~6      !1, '%0D%0A'
          8        ECHO                                                     ~6
    7     9        INIT_FCALL                                               'password_verify'
         10        SEND_VAR                                                 !0
         11        SEND_VAR                                                 !1
         12        DO_ICALL                                         $7      
         13        ASSIGN                                                   !2, $7
    8    14        INIT_FCALL                                               'var_dump'
         15        SEND_VAR                                                 !2
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.02 ms | 1394 KiB | 19 Q