3v4l.org

run code in 300+ PHP versions simultaneously
<?php $startTime = microtime(TRUE); $password='test'; $cost=13; $hash=password_hash($password, PASSWORD_DEFAULT, array('cost' => $cost)); password_verify($password,$hash); $endTime = microtime(TRUE); $time = $endTime - $startTime; echo $time; echo $hash;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/6iorj
function name:  (null)
number of ops:  26
compiled vars:  !0 = $startTime, !1 = $password, !2 = $cost, !3 = $hash, !4 = $endTime, !5 = $time
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'microtime'
          1        SEND_VAL                                                 <true>
          2        DO_ICALL                                         $6      
          3        ASSIGN                                                   !0, $6
    4     4        ASSIGN                                                   !1, 'test'
    5     5        ASSIGN                                                   !2, 13
    6     6        INIT_FCALL                                               'password_hash'
          7        SEND_VAR                                                 !1
          8        SEND_VAL                                                 '2y'
          9        INIT_ARRAY                                       ~10     !2, 'cost'
         10        SEND_VAL                                                 ~10
         11        DO_ICALL                                         $11     
         12        ASSIGN                                                   !3, $11
    7    13        INIT_FCALL                                               'password_verify'
         14        SEND_VAR                                                 !1
         15        SEND_VAR                                                 !3
         16        DO_ICALL                                                 
    8    17        INIT_FCALL                                               'microtime'
         18        SEND_VAL                                                 <true>
         19        DO_ICALL                                         $14     
         20        ASSIGN                                                   !4, $14
    9    21        SUB                                              ~16     !4, !0
         22        ASSIGN                                                   !5, ~16
   10    23        ECHO                                                     !5
   11    24        ECHO                                                     !3
         25      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.44 ms | 1395 KiB | 19 Q