3v4l.org

run code in 300+ PHP versions simultaneously
<?php $password = "admin@7214??"; $hashed_password = password_hash($password, PASSWORD_DEFAULT); echo "Original Password: " . $password . "\n"; echo "Hashed Password: " . $hashed_password . "\n"; echo "Hash Length: " . strlen($hashed_password) . " characters\n"; // Verify the hash works if (password_verify($password, $hashed_password)) { echo "✓ Password verification: SUCCESS\n"; } else { echo "✗ Password verification: FAILED\n"; } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 21, Position 2 = 23
Branch analysis from position: 21
1 jumps found. (Code = 42) Position 1 = 24
Branch analysis from position: 24
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 23
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pThWm
function name:  (null)
number of ops:  25
compiled vars:  !0 = $password, !1 = $hashed_password
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'admin%407214%3F%3F'
    3     1        INIT_FCALL                                               'password_hash'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 '2y'
          4        DO_ICALL                                         $3      
          5        ASSIGN                                                   !1, $3
    5     6        CONCAT                                           ~5      'Original+Password%3A+', !0
          7        CONCAT                                           ~6      ~5, '%0A'
          8        ECHO                                                     ~6
    6     9        CONCAT                                           ~7      'Hashed+Password%3A+', !1
         10        CONCAT                                           ~8      ~7, '%0A'
         11        ECHO                                                     ~8
    7    12        STRLEN                                           ~9      !1
         13        CONCAT                                           ~10     'Hash+Length%3A+', ~9
         14        CONCAT                                           ~11     ~10, '+characters%0A'
         15        ECHO                                                     ~11
   10    16        INIT_FCALL                                               'password_verify'
         17        SEND_VAR                                                 !0
         18        SEND_VAR                                                 !1
         19        DO_ICALL                                         $12     
         20      > JMPZ                                                     $12, ->23
   11    21    >   ECHO                                                     '%E2%9C%93+Password+verification%3A+SUCCESS%0A'
   10    22      > JMP                                                      ->24
   13    23    >   ECHO                                                     '%E2%9C%97+Password+verification%3A+FAILED%0A'
   15    24    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.65 ms | 1076 KiB | 15 Q