3v4l.org

run code in 300+ PHP versions simultaneously
<?php $username = 'tes2t'; $password = '1234'; $hash = password_hash($password, PASSWORD_BCRYPT); echo "Hash: " . $hash . PHP_EOL; if (password_verify($password, $hash)) { echo "Valid"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 15, Position 2 = 16
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
filename:       /in/v4tpG
function name:  (null)
number of ops:  17
compiled vars:  !0 = $username, !1 = $password, !2 = $hash
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'tes2t'
    4     1        ASSIGN                                                   !1, '1234'
    6     2        INIT_FCALL                                               'password_hash'
          3        SEND_VAR                                                 !1
          4        SEND_VAL                                                 '2y'
          5        DO_ICALL                                         $5      
          6        ASSIGN                                                   !2, $5
    8     7        CONCAT                                           ~7      'Hash%3A+', !2
          8        CONCAT                                           ~8      ~7, '%0A'
          9        ECHO                                                     ~8
   10    10        INIT_FCALL                                               'password_verify'
         11        SEND_VAR                                                 !1
         12        SEND_VAR                                                 !2
         13        DO_ICALL                                         $9      
         14      > JMPZ                                                     $9, ->16
   11    15    >   ECHO                                                     'Valid'
   12    16    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.18 ms | 1394 KiB | 17 Q