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 = 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 = 66
Branch analysis from position: 66
2 jumps found. (Code = 44) Position 1 = 68, Position 2 = 61
Branch analysis from position: 68
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 61
2 jumps found. (Code = 44) Position 1 = 68, Position 2 = 61
Branch analysis from position: 68
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/0SEZ8
function name:  (null)
number of ops:  77
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                                                      ->66
   23    61    >   INIT_FCALL                                               'sha1'
         62        SEND_VAR                                                 !0
         63        DO_ICALL                                         $31     
         64        ASSIGN                                                   !3, $31
   22    65        PRE_INC                                                  !2
         66    >   IS_SMALLER                                               !2, 100000
         67      > JMPNZ                                                    ~34, ->61
   25    68    >   INIT_FCALL                                               'var_dump'
         69        SEND_VAR                                                 !3
         70        INIT_FCALL                                               'microtime'
         71        SEND_VAL                                                 <true>
         72        DO_ICALL                                         $35     
         73        SUB                                              ~36     $35, !1
         74        SEND_VAL                                                 ~36
         75        DO_ICALL                                                 
         76      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.33 ms | 1400 KiB | 25 Q