3v4l.org

run code in 300+ PHP versions simultaneously
<?php $password = 'I love Pizza!'; $cost = 10; $salt = strtr(base64_encode(mcrypt_create_iv(16, MCRYPT_DEV_URANDOM)), '+', '.'); $options = array('cost' => $cost,'salt' => $salt); $hash = password_hash($password, PASSWORD_DEFAULT,$options); var_dump(password_verify($password, $hash));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5Oc0n
function name:  (null)
number of ops:  33
compiled vars:  !0 = $password, !1 = $cost, !2 = $salt, !3 = $options, !4 = $hash
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'I+love+Pizza%21'
    5     1        ASSIGN                                                   !1, 10
    6     2        INIT_FCALL                                               'strtr'
          3        INIT_FCALL                                               'base64_encode'
          4        INIT_FCALL_BY_NAME                                       'mcrypt_create_iv'
          5        SEND_VAL_EX                                              16
          6        FETCH_CONSTANT                                   ~7      'MCRYPT_DEV_URANDOM'
          7        SEND_VAL_EX                                              ~7
          8        DO_FCALL                                      0  $8      
          9        SEND_VAR                                                 $8
         10        DO_ICALL                                         $9      
         11        SEND_VAR                                                 $9
         12        SEND_VAL                                                 '%2B'
         13        SEND_VAL                                                 '.'
         14        DO_ICALL                                         $10     
         15        ASSIGN                                                   !2, $10
    7    16        INIT_ARRAY                                       ~12     !1, 'cost'
         17        ADD_ARRAY_ELEMENT                                ~12     !2, 'salt'
         18        ASSIGN                                                   !3, ~12
    9    19        INIT_FCALL                                               'password_hash'
         20        SEND_VAR                                                 !0
         21        SEND_VAL                                                 '2y'
         22        SEND_VAR                                                 !3
         23        DO_ICALL                                         $14     
         24        ASSIGN                                                   !4, $14
   11    25        INIT_FCALL                                               'var_dump'
         26        INIT_FCALL                                               'password_verify'
         27        SEND_VAR                                                 !0
         28        SEND_VAR                                                 !4
         29        DO_ICALL                                         $16     
         30        SEND_VAR                                                 $16
         31        DO_ICALL                                                 
         32      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.88 ms | 1396 KiB | 23 Q