3v4l.org

run code in 500+ PHP versions simultaneously
<?php $startTime = microtime(TRUE); $password='123456'; $cost=13; $hash=password_hash($password, PASSWORD_DEFAULT, array('cost' => $cost)); password_verify($password,$hash); $endTime = microtime(TRUE); $time = $endTime - $startTime; echo $time;

Abusive script

This script was stopped while abusing our resources

Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/N0DtK
function name:  (null)
number of ops:  25
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, '123456'
    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
         24      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
177.56 ms | 2043 KiB | 16 Q