3v4l.org

run code in 300+ PHP versions simultaneously
<?php $time=microtime(1); for ($i=0;$i<100000;$i++) hash('adler32', 'string'); echo microtime(1)-$time,': hash/adler32'."\n"; $time=microtime(1); for ($i=0;$i<100000;$i++) hash('md5', 'string'); echo microtime(1)-$time,': hash/md5'."\n";
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 = 6
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 30
Branch analysis from position: 30
2 jumps found. (Code = 44) Position 1 = 32, Position 2 = 25
Branch analysis from position: 32
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 25
2 jumps found. (Code = 44) Position 1 = 32, Position 2 = 25
Branch analysis from position: 32
Branch analysis from position: 25
Branch analysis from position: 6
2 jumps found. (Code = 44) Position 1 = 13, Position 2 = 6
Branch analysis from position: 13
Branch analysis from position: 6
filename:       /in/97sIe
function name:  (null)
number of ops:  39
compiled vars:  !0 = $time, !1 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'microtime'
          1        SEND_VAL                                                 1
          2        DO_ICALL                                         $2      
          3        ASSIGN                                                   !0, $2
    4     4        ASSIGN                                                   !1, 0
          5      > JMP                                                      ->11
    5     6    >   INIT_FCALL                                               'hash'
          7        SEND_VAL                                                 'adler32'
          8        SEND_VAL                                                 'string'
          9        DO_ICALL                                                 
    4    10        PRE_INC                                                  !1
         11    >   IS_SMALLER                                               !1, 100000
         12      > JMPNZ                                                    ~7, ->6
    6    13    >   INIT_FCALL                                               'microtime'
         14        SEND_VAL                                                 1
         15        DO_ICALL                                         $8      
         16        SUB                                              ~9      $8, !0
         17        ECHO                                                     ~9
         18        ECHO                                                     '%3A+hash%2Fadler32%0A'
    8    19        INIT_FCALL                                               'microtime'
         20        SEND_VAL                                                 1
         21        DO_ICALL                                         $10     
         22        ASSIGN                                                   !0, $10
    9    23        ASSIGN                                                   !1, 0
         24      > JMP                                                      ->30
   10    25    >   INIT_FCALL                                               'hash'
         26        SEND_VAL                                                 'md5'
         27        SEND_VAL                                                 'string'
         28        DO_ICALL                                                 
    9    29        PRE_INC                                                  !1
         30    >   IS_SMALLER                                               !1, 100000
         31      > JMPNZ                                                    ~15, ->25
   11    32    >   INIT_FCALL                                               'microtime'
         33        SEND_VAL                                                 1
         34        DO_ICALL                                         $16     
         35        SUB                                              ~17     $16, !0
         36        ECHO                                                     ~17
         37        ECHO                                                     '%3A+hash%2Fmd5%0A'
         38      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.03 ms | 1392 KiB | 17 Q