3v4l.org

run code in 300+ PHP versions simultaneously
<?php function chrono() { $temps = explode(' ', microtime()); return $temps[0]+$temps[1]; } $debut = chrono(); $bcrypt = new Bcrypt(15); for($i=0;$i<10;$i++) { $p = $bcrypt->hash('toto'); } echo'<hr>'; echo round(chrono()-$debut,10);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
2 jumps found. (Code = 44) Position 1 = 16, Position 2 = 9
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
2 jumps found. (Code = 44) Position 1 = 16, Position 2 = 9
Branch analysis from position: 16
Branch analysis from position: 9
filename:       /in/ddaS8
function name:  (null)
number of ops:  26
compiled vars:  !0 = $debut, !1 = $bcrypt, !2 = $i, !3 = $p
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   INIT_FCALL                                               'chrono'
          1        DO_FCALL                                      0  $4      
          2        ASSIGN                                                   !0, $4
   11     3        NEW                                              $6      'Bcrypt'
          4        SEND_VAL_EX                                              15
          5        DO_FCALL                                      0          
          6        ASSIGN                                                   !1, $6
   13     7        ASSIGN                                                   !2, 0
          8      > JMP                                                      ->14
   14     9    >   INIT_METHOD_CALL                                         !1, 'hash'
         10        SEND_VAL_EX                                              'toto'
         11        DO_FCALL                                      0  $10     
         12        ASSIGN                                                   !3, $10
   13    13        PRE_INC                                                  !2
         14    >   IS_SMALLER                                               !2, 10
         15      > JMPNZ                                                    ~13, ->9
   19    16    >   ECHO                                                     '%3Chr%3E'
   21    17        INIT_FCALL                                               'round'
         18        INIT_FCALL                                               'chrono'
         19        DO_FCALL                                      0  $14     
         20        SUB                                              ~15     $14, !0
         21        SEND_VAL                                                 ~15
         22        SEND_VAL                                                 10
         23        DO_ICALL                                         $16     
         24        ECHO                                                     $16
         25      > RETURN                                                   1

Function chrono:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ddaS8
function name:  chrono
number of ops:  12
compiled vars:  !0 = $temps
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   INIT_FCALL                                               'explode'
          1        SEND_VAL                                                 '+'
          2        INIT_FCALL                                               'microtime'
          3        DO_ICALL                                         $1      
          4        SEND_VAR                                                 $1
          5        DO_ICALL                                         $2      
          6        ASSIGN                                                   !0, $2
    6     7        FETCH_DIM_R                                      ~4      !0, 0
          8        FETCH_DIM_R                                      ~5      !0, 1
          9        ADD                                              ~6      ~4, ~5
         10      > RETURN                                                   ~6
    7    11*     > RETURN                                                   null

End of function chrono

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.61 ms | 1403 KiB | 21 Q