3v4l.org

run code in 500+ PHP versions simultaneously
<?php $t = microtime( true ); $password = 'my_password'; $options = [ 'cost' => 10, ]; $hash = password_hash($password, PASSWORD_BCRYPT, $options); var_dump($hash); var_dump( microtime(true) - $t );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0b6V8
function name:  (null)
number of ops:  23
compiled vars:  !0 = $t, !1 = $password, !2 = $options, !3 = $hash
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                                   'microtime'
          1        SEND_VAL                                                     <true>
          2        DO_ICALL                                             $4      
          3        ASSIGN                                                       !0, $4
    4     4        ASSIGN                                                       !1, 'my_password'
    5     5        ASSIGN                                                       !2, <array>
    8     6        INIT_FCALL                                                   'password_hash'
          7        SEND_VAR                                                     !1
          8        SEND_VAL                                                     '2y'
          9        SEND_VAR                                                     !2
         10        DO_ICALL                                             $8      
         11        ASSIGN                                                       !3, $8
    9    12        INIT_FCALL                                                   'var_dump'
         13        SEND_VAR                                                     !3
         14        DO_ICALL                                                     
   10    15        INIT_FCALL                                                   'var_dump'
         16        INIT_FCALL                                                   'microtime'
         17        SEND_VAL                                                     <true>
         18        DO_ICALL                                             $11     
         19        SUB                                                  ~12     $11, !0
         20        SEND_VAL                                                     ~12
         21        DO_ICALL                                                     
         22      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
159.18 ms | 1299 KiB | 16 Q