3v4l.org

run code in 300+ PHP versions simultaneously
<?php header('Content-type: text/plain'); $b = hash('sha256', mt_rand(), true); $s = microtime(true); for ($i = 0; $i < 100000; $i++) $r = hash('crc32', $b); var_dump($r, microtime(true) - $s); $s = microtime(true); for ($i = 0; $i < 100000; $i++) $r = hash('crc32b', $b); var_dump($r, microtime(true) - $s); $s = microtime(true); for ($i = 0; $i < 100000; $i++) $r = hash('sha1', $b); var_dump($r, microtime(true) - $s); $s = microtime(true); for ($i = 0; $i < 100000; $i++) $r = sha1($b); var_dump($r, microtime(true) - $s);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 23
Branch analysis from position: 23
2 jumps found. (Code = 44) Position 1 = 25, Position 2 = 17
Branch analysis from position: 25
1 jumps found. (Code = 42) Position 1 = 45
Branch analysis from position: 45
2 jumps found. (Code = 44) Position 1 = 47, Position 2 = 39
Branch analysis from position: 47
1 jumps found. (Code = 42) Position 1 = 67
Branch analysis from position: 67
2 jumps found. (Code = 44) Position 1 = 69, Position 2 = 61
Branch analysis from position: 69
1 jumps found. (Code = 42) Position 1 = 88
Branch analysis from position: 88
2 jumps found. (Code = 44) Position 1 = 90, Position 2 = 83
Branch analysis from position: 90
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 83
2 jumps found. (Code = 44) Position 1 = 90, Position 2 = 83
Branch analysis from position: 90
Branch analysis from position: 83
Branch analysis from position: 61
2 jumps found. (Code = 44) Position 1 = 69, Position 2 = 61
Branch analysis from position: 69
Branch analysis from position: 61
Branch analysis from position: 39
2 jumps found. (Code = 44) Position 1 = 47, Position 2 = 39
Branch analysis from position: 47
Branch analysis from position: 39
Branch analysis from position: 17
2 jumps found. (Code = 44) Position 1 = 25, Position 2 = 17
Branch analysis from position: 25
Branch analysis from position: 17
filename:       /in/k3qAj
function name:  (null)
number of ops:  99
compiled vars:  !0 = $b, !1 = $s, !2 = $i, !3 = $r
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'header'
          1        SEND_VAL                                                 'Content-type%3A+text%2Fplain'
          2        DO_ICALL                                                 
    5     3        INIT_FCALL                                               'hash'
          4        SEND_VAL                                                 'sha256'
          5        INIT_FCALL                                               'mt_rand'
          6        DO_ICALL                                         $5      
          7        SEND_VAR                                                 $5
          8        SEND_VAL                                                 <true>
          9        DO_ICALL                                         $6      
         10        ASSIGN                                                   !0, $6
    7    11        INIT_FCALL                                               'microtime'
         12        SEND_VAL                                                 <true>
         13        DO_ICALL                                         $8      
         14        ASSIGN                                                   !1, $8
    8    15        ASSIGN                                                   !2, 0
         16      > JMP                                                      ->23
    9    17    >   INIT_FCALL                                               'hash'
         18        SEND_VAL                                                 'crc32'
         19        SEND_VAR                                                 !0
         20        DO_ICALL                                         $11     
         21        ASSIGN                                                   !3, $11
    8    22        PRE_INC                                                  !2
         23    >   IS_SMALLER                                               !2, 100000
         24      > JMPNZ                                                    ~14, ->17
   11    25    >   INIT_FCALL                                               'var_dump'
         26        SEND_VAR                                                 !3
         27        INIT_FCALL                                               'microtime'
         28        SEND_VAL                                                 <true>
         29        DO_ICALL                                         $15     
         30        SUB                                              ~16     $15, !1
         31        SEND_VAL                                                 ~16
         32        DO_ICALL                                                 
   14    33        INIT_FCALL                                               'microtime'
         34        SEND_VAL                                                 <true>
         35        DO_ICALL                                         $18     
         36        ASSIGN                                                   !1, $18
   15    37        ASSIGN                                                   !2, 0
         38      > JMP                                                      ->45
   16    39    >   INIT_FCALL                                               'hash'
         40        SEND_VAL                                                 'crc32b'
         41        SEND_VAR                                                 !0
         42        DO_ICALL                                         $21     
         43        ASSIGN                                                   !3, $21
   15    44        PRE_INC                                                  !2
         45    >   IS_SMALLER                                               !2, 100000
         46      > JMPNZ                                                    ~24, ->39
   18    47    >   INIT_FCALL                                               'var_dump'
         48        SEND_VAR                                                 !3
         49        INIT_FCALL                                               'microtime'
         50        SEND_VAL                                                 <true>
         51        DO_ICALL                                         $25     
         52        SUB                                              ~26     $25, !1
         53        SEND_VAL                                                 ~26
         54        DO_ICALL                                                 
   21    55        INIT_FCALL                                               'microtime'
         56        SEND_VAL                                                 <true>
         57        DO_ICALL                                         $28     
         58        ASSIGN                                                   !1, $28
   22    59        ASSIGN                                                   !2, 0
         60      > JMP                                                      ->67
   23    61    >   INIT_FCALL                                               'hash'
         62        SEND_VAL                                                 'sha1'
         63        SEND_VAR                                                 !0
         64        DO_ICALL                                         $31     
         65        ASSIGN                                                   !3, $31
   22    66        PRE_INC                                                  !2
         67    >   IS_SMALLER                                               !2, 100000
         68      > JMPNZ                                                    ~34, ->61
   25    69    >   INIT_FCALL                                               'var_dump'
         70        SEND_VAR                                                 !3
         71        INIT_FCALL                                               'microtime'
         72        SEND_VAL                                                 <true>
         73        DO_ICALL                                         $35     
         74        SUB                                              ~36     $35, !1
         75        SEND_VAL                                                 ~36
         76        DO_ICALL                                                 
   28    77        INIT_FCALL                                               'microtime'
         78        SEND_VAL                                                 <true>
         79        DO_ICALL                                         $38     
         80        ASSIGN                                                   !1, $38
   29    81        ASSIGN                                                   !2, 0
         82      > JMP                                                      ->88
   30    83    >   INIT_FCALL                                               'sha1'
         84        SEND_VAR                                                 !0
         85        DO_ICALL                                         $41     
         86        ASSIGN                                                   !3, $41
   29    87        PRE_INC                                                  !2
         88    >   IS_SMALLER                                               !2, 100000
         89      > JMPNZ                                                    ~44, ->83
   32    90    >   INIT_FCALL                                               'var_dump'
         91        SEND_VAR                                                 !3
         92        INIT_FCALL                                               'microtime'
         93        SEND_VAL                                                 <true>
         94        DO_ICALL                                         $45     
         95        SUB                                              ~46     $45, !1
         96        SEND_VAL                                                 ~46
         97        DO_ICALL                                                 
         98      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.46 ms | 1404 KiB | 25 Q