3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.67 ms | 1395 KiB | 21 Q