3v4l.org

run code in 300+ PHP versions simultaneously
<?php $time_start = microtime(true); echo password_hash('password', 1, ['memory_cost' => 1<<14, 'time_cost' => 20, 'threads' => 5]).PHP_EOL; $time_end = microtime(true); //dividing with 60 will give the execution time in minutes other wise seconds $execution_time = ($time_end - $time_start); //execution time of the script echo 'Total Execution Time: '.$execution_time.' Secs'.PHP_EOL;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2emXM
function name:  (null)
number of ops:  22
compiled vars:  !0 = $time_start, !1 = $time_end, !2 = $execution_time
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'microtime'
          1        SEND_VAL                                                 <true>
          2        DO_ICALL                                         $3      
          3        ASSIGN                                                   !0, $3
    4     4        INIT_FCALL                                               'password_hash'
          5        SEND_VAL                                                 'password'
          6        SEND_VAL                                                 1
          7        SEND_VAL                                                 <array>
          8        DO_ICALL                                         $5      
          9        CONCAT                                           ~6      $5, '%0A'
         10        ECHO                                                     ~6
    6    11        INIT_FCALL                                               'microtime'
         12        SEND_VAL                                                 <true>
         13        DO_ICALL                                         $7      
         14        ASSIGN                                                   !1, $7
    9    15        SUB                                              ~9      !1, !0
         16        ASSIGN                                                   !2, ~9
   12    17        CONCAT                                           ~11     'Total+Execution+Time%3A+', !2
         18        CONCAT                                           ~12     ~11, '+Secs'
         19        CONCAT                                           ~13     ~12, '%0A'
         20        ECHO                                                     ~13
         21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.53 ms | 1395 KiB | 17 Q