3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start = microtime(true); for ($i = 0; $i < 1000; $i++) { md5($i); } echo (microtime(true) - $start) . PHP_EOL; $start = microtime(true); for ($i = 0; $i < 1000; $i++) { sha1($i); } echo (microtime(true) - $start) . PHP_EOL;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
2 jumps found. (Code = 44) Position 1 = 12, Position 2 = 6
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 28
Branch analysis from position: 28
2 jumps found. (Code = 44) Position 1 = 30, Position 2 = 24
Branch analysis from position: 30
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 24
2 jumps found. (Code = 44) Position 1 = 30, Position 2 = 24
Branch analysis from position: 30
Branch analysis from position: 24
Branch analysis from position: 6
2 jumps found. (Code = 44) Position 1 = 12, Position 2 = 6
Branch analysis from position: 12
Branch analysis from position: 6
filename:       /in/aimZG
function name:  (null)
number of ops:  37
compiled vars:  !0 = $start, !1 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'microtime'
          1        SEND_VAL                                                 <true>
          2        DO_ICALL                                         $2      
          3        ASSIGN                                                   !0, $2
    4     4        ASSIGN                                                   !1, 0
          5      > JMP                                                      ->10
          6    >   INIT_FCALL                                               'md5'
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                                 
          9        PRE_INC                                                  !1
         10    >   IS_SMALLER                                               !1, 1000
         11      > JMPNZ                                                    ~7, ->6
    5    12    >   INIT_FCALL                                               'microtime'
         13        SEND_VAL                                                 <true>
         14        DO_ICALL                                         $8      
         15        SUB                                              ~9      $8, !0
         16        CONCAT                                           ~10     ~9, '%0A'
         17        ECHO                                                     ~10
    8    18        INIT_FCALL                                               'microtime'
         19        SEND_VAL                                                 <true>
         20        DO_ICALL                                         $11     
         21        ASSIGN                                                   !0, $11
    9    22        ASSIGN                                                   !1, 0
         23      > JMP                                                      ->28
         24    >   INIT_FCALL                                               'sha1'
         25        SEND_VAR                                                 !1
         26        DO_ICALL                                                 
         27        PRE_INC                                                  !1
         28    >   IS_SMALLER                                               !1, 1000
         29      > JMPNZ                                                    ~16, ->24
   10    30    >   INIT_FCALL                                               'microtime'
         31        SEND_VAL                                                 <true>
         32        DO_ICALL                                         $17     
         33        SUB                                              ~18     $17, !0
         34        CONCAT                                           ~19     ~18, '%0A'
         35        ECHO                                                     ~19
         36      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.53 ms | 1400 KiB | 19 Q