3v4l.org

run code in 500+ PHP versions simultaneously
<?php $cost = 12; $hash = password_hash('miauw woef boe schrik', PASSWORD_BCRYPT, array('cost' => $cost /* 12 */)); echo $hash, PHP_EOL; echo strlen($hash);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/dMigk
function name:  (null)
number of ops:  13
compiled vars:  !0 = $cost, !1 = $hash
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, 12
    5     1        INIT_FCALL                                                   'password_hash'
          2        SEND_VAL                                                     'miauw+woef+boe+schrik'
          3        SEND_VAL                                                     '2y'
          4        INIT_ARRAY                                           ~3      !0, 'cost'
          5        SEND_VAL                                                     ~3
          6        DO_ICALL                                             $4      
          7        ASSIGN                                                       !1, $4
    7     8        ECHO                                                         !1
          9        ECHO                                                         '%0A'
    8    10        STRLEN                                               ~6      !1
         11        ECHO                                                         ~6
         12      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
155.71 ms | 2445 KiB | 14 Q