3v4l.org

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

Function chrono:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/6BI0v
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:
156.73 ms | 1399 KiB | 23 Q