3v4l.org

run code in 300+ PHP versions simultaneously
<?php $options = array( 'cost' => 12, ); $password = '$$4ghi.%3'; $hash = password_hash($password, PASSWORD_DEFAULT); $hashnsalt = password_hash($password, PASSWORD_BCRYPT, $options); echo 'hash'.$hash; echo 'hashnsalt: '.$hashnsalt;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/v5JcB
function name:  (null)
number of ops:  18
compiled vars:  !0 = $options, !1 = $password, !2 = $hash, !3 = $hashnsalt
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    7     1        ASSIGN                                                   !1, '%24%244ghi.%253'
    9     2        INIT_FCALL                                               'password_hash'
          3        SEND_VAR                                                 !1
          4        SEND_VAL                                                 '2y'
          5        DO_ICALL                                         $6      
          6        ASSIGN                                                   !2, $6
   10     7        INIT_FCALL                                               'password_hash'
          8        SEND_VAR                                                 !1
          9        SEND_VAL                                                 '2y'
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                         $8      
         12        ASSIGN                                                   !3, $8
   12    13        CONCAT                                           ~10     'hash', !2
         14        ECHO                                                     ~10
   13    15        CONCAT                                           ~11     'hashnsalt%3A+', !3
         16        ECHO                                                     ~11
   14    17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
140.82 ms | 1004 KiB | 14 Q