3v4l.org

run code in 300+ PHP versions simultaneously
<?php $options = [ 'cost' => 7, 'salt' => 'BCryptRequires22Chrcts', ]; $hash[] = password_hash("rasmuslerdorf", PASSWORD_BCRYPT, $options); $hash[] = password_hash("rasmuslerdorf", PASSWORD_DEFAULT); $hash_info[] = password_get_info($hash[0]); $hash_info[] = password_get_info($hash[1]); var_dump($hash,$hash_info);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/OBCQq
function name:  (null)
number of ops:  31
compiled vars:  !0 = $options, !1 = $hash, !2 = $hash_info
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    7     1        INIT_FCALL                                               'password_hash'
          2        SEND_VAL                                                 'rasmuslerdorf'
          3        SEND_VAL                                                 '2y'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $5      
          6        ASSIGN_DIM                                               !1
          7        OP_DATA                                                  $5
    8     8        INIT_FCALL                                               'password_hash'
          9        SEND_VAL                                                 'rasmuslerdorf'
         10        SEND_VAL                                                 '2y'
         11        DO_ICALL                                         $7      
         12        ASSIGN_DIM                                               !1
         13        OP_DATA                                                  $7
   10    14        INIT_FCALL                                               'password_get_info'
         15        FETCH_DIM_R                                      ~9      !1, 0
         16        SEND_VAL                                                 ~9
         17        DO_ICALL                                         $10     
         18        ASSIGN_DIM                                               !2
         19        OP_DATA                                                  $10
   11    20        INIT_FCALL                                               'password_get_info'
         21        FETCH_DIM_R                                      ~12     !1, 1
         22        SEND_VAL                                                 ~12
         23        DO_ICALL                                         $13     
         24        ASSIGN_DIM                                               !2
         25        OP_DATA                                                  $13
   13    26        INIT_FCALL                                               'var_dump'
         27        SEND_VAR                                                 !1
         28        SEND_VAR                                                 !2
         29        DO_ICALL                                                 
         30      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.42 ms | 1387 KiB | 19 Q